Browse Source

Do not fail when decoding invalid v410 files with odd width.

Reviewed-by; Derek Buitenhuis
tags/n0.10
Carl Eugen Hoyos 13 years ago
parent
commit
6ed3565f08
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/v410dec.c

+ 1
- 2
libavcodec/v410dec.c View File

@@ -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();


Loading…
Cancel
Save