[FFmpeg-devel] [PATCH]Do not fail decoding invalid v410 files
Carl Eugen Hoyos
cehoyos at ag.or.at
Fri Dec 30 02:05:12 CET 2011
On Friday 30 December 2011 01:58:03 am Derek Buitenhuis wrote:
> On 29/12/2011 7:57 PM, Reimar Döffinger wrote:
> > complaining about them if they are clearly invalid is a good idea though.
>
> Agreed.
New patch attached.
Please comment, Carl eugen
-------------- next part --------------
diff --git a/libavcodec/v410dec.c b/libavcodec/v410dec.c
index 6ea43ad..f600b5d 100644
--- a/libavcodec/v410dec.c
+++ b/libavcodec/v410dec.c
@@ -29,8 +29,7 @@ static av_cold int v410_decode_init(AVCodecContext *avctx)
avctx->bits_per_raw_sample = 10;
if (avctx->width & 1) {
- av_log(avctx, AV_LOG_ERROR, "v410 requires width to be even.\n");
+ av_log(avctx, AV_LOG_WARNING, "v410 requires width to be even.\n");
- return AVERROR_INVALIDDATA;
}
avctx->coded_frame = avcodec_alloc_frame();
More information about the ffmpeg-devel
mailing list