]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libutvideodec.cpp
lavc/utils: Make pix_fmt desc pointer const.
[ffmpeg] / libavcodec / libutvideodec.cpp
index 1e3e612ef06b62ee8bab97c9351b29c2b29c8292..e4b87a8bbcaf7b2fc6bc74805bbf2aa926a35e65 100644 (file)
@@ -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) {