]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/proresenc.c
h264: rewrite has_b_frame calculation code,
[ffmpeg] / libavcodec / proresenc.c
index 1dc865cbb0ffd8578d51da4ed872fc6cf76e1132..d27719d3681592e1412e2c1d0eb3eedbf52e336b 100644 (file)
@@ -499,8 +499,8 @@ static int prores_encode_frame(AVCodecContext *avctx, unsigned char *buf,
     bytestream_put_be16(&buf, header_size);
     bytestream_put_be16(&buf, 0);
     bytestream_put_buffer(&buf, "fmpg", 4);
-    bytestream_put_be16(&buf, pic->width);
-    bytestream_put_be16(&buf, pic->height);
+    bytestream_put_be16(&buf, avctx->width);
+    bytestream_put_be16(&buf, avctx->height);
     *buf++ = 0x83; // {10}(422){00}{00}(frame){11}
     *buf++ = 0;
     *buf++ = 2;