[FFmpeg-devel] [PATCH] lavc: don't show "Invalid and inefficient vfw-avi..." warning in mpeg4 parser
wm4
nfxjfg at googlemail.com
Mon Sep 9 00:46:01 CEST 2013
Only the actual decoder should print this warning.
---
With this patch, a video player using ffmpeg will print the warning only
once (on decoder initialization) when playing a broken file, instead on
every seek.
---
libavcodec/mpeg4video_parser.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/mpeg4video_parser.c b/libavcodec/mpeg4video_parser.c
index 3cbd69d..b3cbf91 100644
--- a/libavcodec/mpeg4video_parser.c
+++ b/libavcodec/mpeg4video_parser.c
@@ -114,6 +114,7 @@ static av_cold int mpeg4video_parse_init(AVCodecParserContext *s)
pc->first_picture = 1;
pc->enc.quant_precision=5;
pc->enc.slice_context_count = 1;
+ pc->enc.showed_packed_warning = 1;
return 0;
}
--
1.8.4.rc3
More information about the ffmpeg-devel
mailing list