git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9e0e95
)
Do not fail when decoding invalid v410 files with odd width.
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Fri, 30 Dec 2011 01:34:29 +0000
(
02:34
+0100)
committer
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Fri, 30 Dec 2011 01:34:29 +0000
(
02:34
+0100)
Reviewed-by; Derek Buitenhuis
libavcodec/v410dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/v410dec.c
b/libavcodec/v410dec.c
index
6ea43ad
..
f600b5d
100644
(file)
--- 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();