[FFmpeg-cvslog] Set bits_per_coded_sample when encoding Microsoft Video-1.

Carl Eugen Hoyos git at videolan.org
Sun Apr 15 16:36:55 CEST 2012


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Apr 15 16:35:03 2012 +0200| [cb8f5194b369f469dc04b78ada5f0e3a29f31b99] | committer: Carl Eugen Hoyos

Set bits_per_coded_sample when encoding Microsoft Video-1.

Fixes ticket #1193.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb8f5194b369f469dc04b78ada5f0e3a29f31b99
---

 libavcodec/msvideo1enc.c   |    1 +
 tests/ref/vsynth1/msvideo1 |    2 +-
 tests/ref/vsynth2/msvideo1 |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavcodec/msvideo1enc.c b/libavcodec/msvideo1enc.c
index aa3c26a..96fbea2 100644
--- a/libavcodec/msvideo1enc.c
+++ b/libavcodec/msvideo1enc.c
@@ -276,6 +276,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
 
     avcodec_get_frame_defaults(&c->pic);
     avctx->coded_frame = (AVFrame*)&c->pic;
+    avctx->bits_per_coded_sample = 16;
 
     c->keyint = avctx->keyint_min;
     av_lfg_init(&c->rnd, 1);
diff --git a/tests/ref/vsynth1/msvideo1 b/tests/ref/vsynth1/msvideo1
index 7978258..2dc529b 100644
--- a/tests/ref/vsynth1/msvideo1
+++ b/tests/ref/vsynth1/msvideo1
@@ -1,4 +1,4 @@
-267a152a73cbc5ac4694a6e3b254be34 *./tests/data/vsynth1/msvideo1.avi
+37aa67b5928794534cb6a268d4adf48c *./tests/data/vsynth1/msvideo1.avi
 2162264 ./tests/data/vsynth1/msvideo1.avi
 c0665fac1bd896b6fe7fe0eead805bd5 *./tests/data/msvideo1.vsynth1.out.yuv
 stddev:   11.80 PSNR: 26.69 MAXDIFF:  151 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth2/msvideo1 b/tests/ref/vsynth2/msvideo1
index f71be35..9c049e7 100644
--- a/tests/ref/vsynth2/msvideo1
+++ b/tests/ref/vsynth2/msvideo1
@@ -1,4 +1,4 @@
-5dddbbd6616d9be4bc0fd0c9650bd9e3 *./tests/data/vsynth2/msvideo1.avi
+e70658b8b97eb4c7e63b2081c3a602de *./tests/data/vsynth2/msvideo1.avi
 1259308 ./tests/data/vsynth2/msvideo1.avi
 cd83ffcbc73573044e3aead3094229e5 *./tests/data/msvideo1.vsynth2.out.yuv
 stddev:    7.42 PSNR: 30.72 MAXDIFF:  123 bytes:  7603200/  7603200



More information about the ffmpeg-cvslog mailing list