diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/video_dec/libvdpau/vdpau_h264.c | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/src/video_dec/libvdpau/vdpau_h264.c b/src/video_dec/libvdpau/vdpau_h264.c index 4e8751394..153d88438 100644 --- a/src/video_dec/libvdpau/vdpau_h264.c +++ b/src/video_dec/libvdpau/vdpau_h264.c @@ -476,25 +476,6 @@ static int vdpau_decoder_render(video_decoder_t *this_gen, VdpBitstreamBuffer *v } /* go and decode a frame */ -#ifdef DEBUG_H264 - dump_pictureinfo_h264(&pic); - - int i; - printf("E: Bytes used: %d\n", vdp_buffer->bitstream_bytes); - printf("E: Decode data: \nE:"); - for(i = 0; i < ((vdp_buffer->bitstream_bytes < 20) ? vdp_buffer->bitstream_bytes : 20); i++) { - printf("%02x ", ((uint8_t*)vdp_buffer->bitstream)[i]); - if((i+1) % 10 == 0) - printf("\nE:"); - } - printf("\n...\n"); - for(i = vdp_buffer->bitstream_bytes - 20; i < vdp_buffer->bitstream_bytes; i++) { - printf("%02x ", ((uint8_t*)vdp_buffer->bitstream)[i]); - if((i+1) % 10 == 0) - printf("\nE:"); - } - printf("\nE: ---------------------------------------------------------------\n"); -#endif /* check if we expect a second field, but got a frame */ if (this->incomplete_pic && img) { @@ -518,6 +499,26 @@ static int vdpau_decoder_render(video_decoder_t *this_gen, VdpBitstreamBuffer *v fill_vdpau_pictureinfo_h264(this_gen, slice_count, &pic); + #ifdef DEBUG_H264 + dump_pictureinfo_h264(&pic); + + int i; + printf("E: Bytes used: %d\n", vdp_buffer->bitstream_bytes); + printf("E: Decode data: \nE:"); + for(i = 0; i < ((vdp_buffer->bitstream_bytes < 20) ? vdp_buffer->bitstream_bytes : 20); i++) { + printf("%02x ", ((uint8_t*)vdp_buffer->bitstream)[i]); + if((i+1) % 10 == 0) + printf("\nE:"); + } + printf("\n...\n"); + for(i = vdp_buffer->bitstream_bytes - 20; i < vdp_buffer->bitstream_bytes; i++) { + printf("%02x ", ((uint8_t*)vdp_buffer->bitstream)[i]); + if((i+1) % 10 == 0) + printf("\nE:"); + } + printf("\nE: ---------------------------------------------------------------\n"); +#endif + if(!this->decoder_started && !pic.is_reference) return 0; |