Mercurial > libavcodec.hg
comparison h263.c @ 8106:2f5101a67500 libavcodec
Only warn about "Invalid and inefficient vfw-avi packed B frames" once.
Patch by Andrew Savchenko, Bircoph at list dot ru
author | andoma |
---|---|
date | Tue, 04 Nov 2008 06:54:42 +0000 |
parents | e70975d5ff80 |
children | d256dbf74ea6 |
comparison
equal
deleted
inserted
replaced
8105:b122cb798801 | 8106:2f5101a67500 |
---|---|
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) | 5754 if(s->divx_packed && !s->showed_packed_warning) { |
5755 av_log(s->avctx, AV_LOG_WARNING, "Invalid and inefficient vfw-avi packed B frames detected\n"); | 5755 av_log(s->avctx, AV_LOG_WARNING, "Invalid and inefficient vfw-avi packed B frames detected\n"); |
5756 s->showed_packed_warning=1; | |
5757 } | |
5756 } | 5758 } |
5757 | 5759 |
5758 /* ffmpeg detection */ | 5760 /* ffmpeg detection */ |
5759 e=sscanf(buf, "FFmpe%*[^b]b%d", &build)+3; | 5761 e=sscanf(buf, "FFmpe%*[^b]b%d", &build)+3; |
5760 if(e!=4) | 5762 if(e!=4) |