diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-09-10 01:13:10 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-09-10 01:13:10 +0000 |
commit | 96b6ace22e610a62d0e9198254164b08c7e4790a (patch) | |
tree | ae599b6c8a1e9af8538d70dafa79311f2858bcb4 | |
parent | 8868d31065992b0157b790103759bc56b021ae0a (diff) | |
download | ffmpeg-96b6ace22e610a62d0e9198254164b08c7e4790a.tar.gz |
dont be so picky with .mp4 ... fixes Mr&MrsSmith.mp4
Originally committed as revision 4571 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h264.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 4ffbb9ec0a..efbf5322d7 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -7279,8 +7279,8 @@ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){ int buf_index=0; #if 0 int i; - for(i=0; i<32; i++){ - printf("%X ", buf[i]); + for(i=0; i<50; i++){ + av_log(NULL, AV_LOG_ERROR,"%02X ", buf[i]); } #endif h->slice_num = 0; @@ -7484,7 +7484,7 @@ static int decode_frame(AVCodecContext *avctx, p += 6; for (i = 0; i < cnt; i++) { nalsize = BE_16(p) + 2; - if(decode_nal_units(h, p, nalsize) != nalsize) { + if(decode_nal_units(h, p, nalsize) < 0) { av_log(avctx, AV_LOG_ERROR, "Decoding sps %d from avcC failed\n", i); return -1; } |