Commit 0c42f47e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/libutvideodec: Try to fix build failure with old libutvideo

Found-by: 's avatarJan Ehrhardt <phpdev@ehrhardt.nl>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2114e884
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment