[FFmpeg-devel] [RFC] dc value 0 legal for flv?

Reimar Döffinger Reimar.Doeffinger
Sat Sep 12 13:39:40 CEST 2009


Hello,
a user reported that
http://study.fivebranches.edu/video_bank/gaoshuzhong200907/1_200907gaoshuzhong.flv
does not play right in MPlayer.
This is reproducible with "ffplay -er 2" (even without there are many
warnings).
Do you think it is possible that dc level of 0 is valid for flv?
If so, I'd suggest to fix this with this patch:
Index: libavcodec/h263.c
===================================================================
--- libavcodec/h263.c   (revision 19824)
+++ libavcodec/h263.c   (working copy)
@@ -4635,7 +4635,7 @@
 #endif
         }else{
             level = get_bits(&s->gb, 8);
-            if((level&0x7F) == 0){
+            if(!s->h263_flv && (level&0x7F) == 0){
                 av_log(s->avctx, AV_LOG_ERROR, "illegal dc %d at %d %d\n", level, s->mb_x, s->mb_y);
                 if(s->error_recognition >= FF_ER_COMPLIANT)
                     return -1;




More information about the ffmpeg-devel mailing list