Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-02-11 23:37:41 +0400
committerAnton Khirnov <anton@khirnov.net>2012-02-12 11:05:38 +0400
commit177bb4bf50d762fcc1ace3e357a2a2bba54744ee (patch)
tree2c2fb3fdab9b8c07b1b7d400391441a87122a9d4
parent89829242a633789fa614ec7ca9ffb912b5f02765 (diff)
cljr: set the properties of the coded_frame, not input frame.
-rw-r--r--libavcodec/cljr.c4
-rw-r--r--tests/ref/vsynth1/cljr2
-rw-r--r--tests/ref/vsynth2/cljr2
3 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/cljr.c b/libavcodec/cljr.c
index cf307bb06a..a3bb66c500 100644
--- a/libavcodec/cljr.c
+++ b/libavcodec/cljr.c
@@ -135,8 +135,8 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
AVFrame *p = data;
int x, y;
- p->pict_type = AV_PICTURE_TYPE_I;
- p->key_frame = 1;
+ avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
+ avctx->coded_frame->key_frame = 1;
init_put_bits(&pb, buf, buf_size / 8);
diff --git a/tests/ref/vsynth1/cljr b/tests/ref/vsynth1/cljr
index 9865726ccc..4978344bd3 100644
--- a/tests/ref/vsynth1/cljr
+++ b/tests/ref/vsynth1/cljr
@@ -1,4 +1,4 @@
-d149cadc43100d8e98ff04e57fdaa31f *./tests/data/vsynth1/cljr.avi
+b4d3d31da0b4b6873ad8239d113c91d2 *./tests/data/vsynth1/cljr.avi
5075660 ./tests/data/vsynth1/cljr.avi
4debaab994c2c7273bebaa0c5733017b *./tests/data/cljr.vsynth1.out.yuv
stddev: 30.75 PSNR: 18.37 MAXDIFF: 225 bytes: 7603200/ 7603200
diff --git a/tests/ref/vsynth2/cljr b/tests/ref/vsynth2/cljr
index 6f8670ca71..562f35fa22 100644
--- a/tests/ref/vsynth2/cljr
+++ b/tests/ref/vsynth2/cljr
@@ -1,4 +1,4 @@
-86250984790dd745a932f36cf229cef7 *./tests/data/vsynth2/cljr.avi
+416ddcf73d2d993456f3c49f3eed4f1a *./tests/data/vsynth2/cljr.avi
5075660 ./tests/data/vsynth2/cljr.avi
3a70ba2a535ef9c7fc6478b27a2cb58a *./tests/data/cljr.vsynth2.out.yuv
stddev: 10.48 PSNR: 27.72 MAXDIFF: 64 bytes: 7603200/ 7603200