[FFmpeg-cvslog] Do not fail when decoding invalid v410 files with odd width.
Carl Eugen Hoyos
git at videolan.org
Fri Dec 30 02:35:33 CET 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Dec 30 02:34:29 2011 +0100| [6ed3565f08abf3b1c2a1d2d7fac768b18753530c] | committer: Carl Eugen Hoyos
Do not fail when decoding invalid v410 files with odd width.
Reviewed-by; Derek Buitenhuis
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6ed3565f08abf3b1c2a1d2d7fac768b18753530c
---
libavcodec/v410dec.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
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");
- return AVERROR_INVALIDDATA;
+ av_log(avctx, AV_LOG_WARNING, "v410 requires width to be even.\n");
}
avctx->coded_frame = avcodec_alloc_frame();
More information about the ffmpeg-cvslog
mailing list