Mercurial > libavcodec.hg
comparison h263.c @ 6893:72dafc993490 libavcodec
Warn about packed B-frames. (especially useful if the file in question is
not an avi ...)
author | michael |
---|---|
date | Mon, 26 May 2008 11:32:42 +0000 |
parents | 22cca5d3173a |
children | 25dcd46b8160 |
comparison
equal
deleted
inserted
replaced
6892:ef70c05f77e8 | 6893:72dafc993490 |
---|---|
5749 e=sscanf(buf, "DivX%db%d%c", &ver, &build, &last); | 5749 e=sscanf(buf, "DivX%db%d%c", &ver, &build, &last); |
5750 if(e>=2){ | 5750 if(e>=2){ |
5751 s->divx_version= ver; | 5751 s->divx_version= ver; |
5752 s->divx_build= build; | 5752 s->divx_build= build; |
5753 s->divx_packed= e==3 && last=='p'; | 5753 s->divx_packed= e==3 && last=='p'; |
5754 if(s->divx_packed) | |
5755 av_log(s->avctx, AV_LOG_WARNING, "Invalid and inefficient vfw-avi packed B frames detected\n"); | |
5754 } | 5756 } |
5755 | 5757 |
5756 /* ffmpeg detection */ | 5758 /* ffmpeg detection */ |
5757 e=sscanf(buf, "FFmpe%*[^b]b%d", &build)+3; | 5759 e=sscanf(buf, "FFmpe%*[^b]b%d", &build)+3; |
5758 if(e!=4) | 5760 if(e!=4) |