diff options
author | Julian Scheel <julian@jusst.de> | 2010-06-13 12:26:00 +0200 |
---|---|---|
committer | Julian Scheel <julian@jusst.de> | 2010-06-13 12:26:00 +0200 |
commit | 3483c086900b46f159c0cbe8a4e4fe0b80e7948c (patch) | |
tree | 1a3cc0f47e86600ac114ebbe3bdbc35ddc2e0814 /src | |
parent | 76e91be241e8f05ff758c918c670d6d31f3ff5bf (diff) | |
download | xine-lib-3483c086900b46f159c0cbe8a4e4fe0b80e7948c.tar.gz xine-lib-3483c086900b46f159c0cbe8a4e4fe0b80e7948c.tar.bz2 |
fix debug output
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; |