From f0cbab2ac73733f3521640e3fc37ee0bd67c5590 Mon Sep 17 00:00:00 2001 From: Boris Maksalov Date: Tue, 14 Aug 2012 10:05:38 +0100 Subject: prores_kostya: fix incorrect picture_size field. Signed-off-by: Michael Niedermayer --- libavcodec/proresenc_kostya.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/proresenc_kostya.c') diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index a0feed90ca..8e773617b5 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresenc_kostya.c @@ -818,7 +818,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, orig_buf -= 8; frame_size = buf - orig_buf; - picture_size = buf - picture_size_pos - 6; + picture_size = buf - (picture_size_pos - 1); bytestream_put_be32(&orig_buf, frame_size); bytestream_put_be32(&picture_size_pos, picture_size); -- cgit v1.2.3