diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-29 13:15:26 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-29 13:15:26 +0100 |
commit | 0c42f47e383fc8e1e351e7d256803ffd2b2837d1 (patch) | |
tree | 47ab357e243c885a0e35bfb2a7437962c447783d | |
parent | 2114e8843256f6c1d5a3c450f8ed19cd8fbdcdd5 (diff) | |
download | ffmpeg-0c42f47e383fc8e1e351e7d256803ffd2b2837d1.tar.gz |
avcodec/libutvideodec: Try to fix build failure with old libutvideo
Found-by: Jan Ehrhardt <phpdev@ehrhardt.nl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/libutvideodec.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/libutvideodec.cpp b/libavcodec/libutvideodec.cpp index 1e3e612ef0..e4b87a8bbc 100644 --- a/libavcodec/libutvideodec.cpp +++ b/libavcodec/libutvideodec.cpp @@ -94,8 +94,10 @@ static av_cold int utvideo_decode_init(AVCodecContext *avctx) /* Only allocate the buffer once */ utv->buf_size = avpicture_get_size(avctx->pix_fmt, avctx->width, avctx->height); +#ifdef UTVF_UQY2 if (format == UTVF_v210) utv->buf_size += avctx->height * ((avctx->width + 47) / 48) * 128; // the linesize used by the decoder, this does not seem to be exported +#endif utv->buffer = (uint8_t *)av_malloc(utv->buf_size * sizeof(uint8_t)); if (utv->buffer == NULL) { |