Mercurial > libavcodec.hg
changeset 2867:7c7edddaa835 libavcodec
dont be so picky with .mp4 ... fixes Mr&MrsSmith.mp4
author | michael |
---|---|
date | Sat, 10 Sep 2005 01:13:10 +0000 |
parents | 5cbc5bdbfa61 |
children | 666064f710d4 |
files | h264.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Wed Sep 07 19:15:48 2005 +0000 +++ b/h264.c Sat Sep 10 01:13:10 2005 +0000 @@ -7279,8 +7279,8 @@ 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 @@ 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; }