summaryrefslogtreecommitdiffstats
path: root/libavcodec/huffyuvdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-06 00:07:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-06 00:08:03 +0200
commit296b01d7f91f8d595269f1137f37d4b9671bfafa (patch)
treec85914f6349708dabf1b0d10ffe67aade0c637a7 /libavcodec/huffyuvdec.c
parent3ce55d2e32ce37e236baad96760233be53141129 (diff)
parenta7153444df9040bf6ae103e0bbf6104b66f974cb (diff)
downloadffmpeg-streaming-296b01d7f91f8d595269f1137f37d4b9671bfafa.zip
ffmpeg-streaming-296b01d7f91f8d595269f1137f37d4b9671bfafa.tar.gz
Merge commit 'a7153444df9040bf6ae103e0bbf6104b66f974cb'
* commit 'a7153444df9040bf6ae103e0bbf6104b66f974cb': huffyuvdec: check width size for yuv422p Conflicts: libavcodec/huffyuvdec.c See: 6abb9a901fca27da14d4fffbb01948288b5da3ba Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/huffyuvdec.c')
-rw-r--r--libavcodec/huffyuvdec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c
index f552323..f206207 100644
--- a/libavcodec/huffyuvdec.c
+++ b/libavcodec/huffyuvdec.c
@@ -523,10 +523,13 @@ static av_cold int decode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_ERROR, "width must be even for this colorspace\n");
return AVERROR_INVALIDDATA;
}
- if (s->predictor == MEDIAN && avctx->pix_fmt == AV_PIX_FMT_YUV422P && avctx->width%4) {
- av_log(avctx, AV_LOG_ERROR, "width must be a multiple of 4 this colorspace and predictor\n");
+ if (s->predictor == MEDIAN && avctx->pix_fmt == AV_PIX_FMT_YUV422P &&
+ avctx->width % 4) {
+ av_log(avctx, AV_LOG_ERROR, "width must be a multiple of 4 "
+ "for this combination of colorspace and predictor type.\n");
return AVERROR_INVALIDDATA;
}
+
if ((ret = ff_huffyuv_alloc_temp(s)) < 0) {
ff_huffyuv_common_end(s);
return ret;
OpenPOWER on IntegriCloud