]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dpxenc.c
avcodec/mpeg12dec: Do not call show_bits() with invalid bits
[ffmpeg] / libavcodec / dpxenc.c
index 52e1ef2332cbc4503448359175ed129a1f2e48d4..a5960334d58d33e57bda61b9924dfbc842cea6ef 100644 (file)
@@ -245,7 +245,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
             }
         } else {
             size = av_image_copy_to_buffer(buf + HEADER_SIZE, pkt->size - HEADER_SIZE,
-                                           frame->data, frame->linesize,
+                                           (const uint8_t**)frame->data, frame->linesize,
                                            avctx->pix_fmt,
                                            avctx->width, avctx->height, 1);
         }