summaryrefslogtreecommitdiff
path: root/libavcodec/libutvideodec.cpp
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-29 13:15:26 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-10-29 13:15:26 +0100
commit0c42f47e383fc8e1e351e7d256803ffd2b2837d1 (patch)
tree47ab357e243c885a0e35bfb2a7437962c447783d /libavcodec/libutvideodec.cpp
parent2114e8843256f6c1d5a3c450f8ed19cd8fbdcdd5 (diff)
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>
Diffstat (limited to 'libavcodec/libutvideodec.cpp')
-rw-r--r--libavcodec/libutvideodec.cpp2
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) {