[FFmpeg-cvslog] prores_kostya: fix incorrect picture_size field.
Boris Maksalov
git at videolan.org
Tue Aug 14 17:20:34 CEST 2012
ffmpeg | branch: master | Boris Maksalov <boris.maksalov at yandex.ru> | Tue Aug 14 10:05:38 2012 +0100| [f0cbab2ac73733f3521640e3fc37ee0bd67c5590] | committer: Michael Niedermayer
prores_kostya: fix incorrect picture_size field.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f0cbab2ac73733f3521640e3fc37ee0bd67c5590
---
libavcodec/proresenc_kostya.c | 2 +-
tests/ref/fate/vsynth1-prores_kostya | 2 +-
tests/ref/fate/vsynth2-prores_kostya | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c
index a0feed9..8e77361 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);
diff --git a/tests/ref/fate/vsynth1-prores_kostya b/tests/ref/fate/vsynth1-prores_kostya
index c9350e9..f974a7a 100644
--- a/tests/ref/fate/vsynth1-prores_kostya
+++ b/tests/ref/fate/vsynth1-prores_kostya
@@ -1,4 +1,4 @@
-f8fe98b7f9bb66857c81dbca409a9037 *tests/data/fate/vsynth1-prores_kostya.mov
+e7a7e17a40df5d1296cea05d55bd5724 *tests/data/fate/vsynth1-prores_kostya.mov
3858901 tests/data/fate/vsynth1-prores_kostya.mov
0a4153637d0cc0a88a8bcbf04cfaf8c6 *tests/data/fate/vsynth1-prores_kostya.out.rawvideo
stddev: 3.17 PSNR: 38.09 MAXDIFF: 39 bytes: 7603200/ 7603200
diff --git a/tests/ref/fate/vsynth2-prores_kostya b/tests/ref/fate/vsynth2-prores_kostya
index 68acf9c..6128b8c 100644
--- a/tests/ref/fate/vsynth2-prores_kostya
+++ b/tests/ref/fate/vsynth2-prores_kostya
@@ -1,4 +1,4 @@
-26adb18726c08dde23bc4bee2eb591e2 *tests/data/fate/vsynth2-prores_kostya.mov
+80dbde33cf16cde01e6229313ac7ddc7 *tests/data/fate/vsynth2-prores_kostya.mov
3884586 tests/data/fate/vsynth2-prores_kostya.mov
ca2f6c1162635dedfa468c90f1fdc0ef *tests/data/fate/vsynth2-prores_kostya.out.rawvideo
stddev: 0.92 PSNR: 48.77 MAXDIFF: 10 bytes: 7603200/ 7603200
More information about the ffmpeg-cvslog
mailing list