From 0c42f47e383fc8e1e351e7d256803ffd2b2837d1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 29 Oct 2014 13:15:26 +0100 Subject: avcodec/libutvideodec: Try to fix build failure with old libutvideo Found-by: Jan Ehrhardt Signed-off-by: Michael Niedermayer --- libavcodec/libutvideodec.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/libutvideodec.cpp') 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) { -- cgit v1.2.3