Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-30 05:34:29 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-30 05:34:29 +0400
commit6ed3565f08abf3b1c2a1d2d7fac768b18753530c (patch)
tree116d9dcd34d84408ca7b0cfb687a77c04d4f2b1a /libavcodec/v410dec.c
parentb9e0e9537a3ec4af1630e9f1b8d0ce68885cac16 (diff)
Do not fail when decoding invalid v410 files with odd width.
Reviewed-by; Derek Buitenhuis
Diffstat (limited to 'libavcodec/v410dec.c')
-rw-r--r--libavcodec/v410dec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/v410dec.c b/libavcodec/v410dec.c
index 6ea43addc3..f600b5d493 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();