aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/proresenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-07 22:13:59 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-07 22:35:55 +0100
commitc3d56f0ea35fc76799b3accb64503baceee05188 (patch)
tree84737f448ce839d09eab03c6447c9887be3b19f3 /libavcodec/proresenc.c
parent22e25c002e103e52ace35703423e896b08b51aef (diff)
downloadffmpeg-c3d56f0ea35fc76799b3accb64503baceee05188.tar.gz
proresenc: fix typo that caused the wrong dimensions to be used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/proresenc.c')
-rw-r--r--libavcodec/proresenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/proresenc.c b/libavcodec/proresenc.c
index 1dc865cbb0..d27719d368 100644
--- a/libavcodec/proresenc.c
+++ b/libavcodec/proresenc.c
@@ -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;