[FFmpeg-cvslog] Set bits_per_coded_sample when encoding Y41P.

Carl Eugen Hoyos git at videolan.org
Tue Jan 3 23:08:23 CET 2012


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Jan  3 23:05:54 2012 +0100| [001567c767132aec24471529a057ac7d74de70a1] | committer: Carl Eugen Hoyos

Set bits_per_coded_sample when encoding Y41P.

This allows mplayer -vc bt411 to decode files
encoded with FFmpeg.

Reviewed-by: Paul B Mahol

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

 libavcodec/y41penc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/y41penc.c b/libavcodec/y41penc.c
index aa32403..e5905cf 100644
--- a/libavcodec/y41penc.c
+++ b/libavcodec/y41penc.c
@@ -30,6 +30,7 @@ static av_cold int y41p_encode_init(AVCodecContext *avctx)
     }
 
     avctx->coded_frame = avcodec_alloc_frame();
+    avctx->bits_per_coded_sample = 12;
 
     if (!avctx->coded_frame) {
         av_log(avctx, AV_LOG_ERROR, "Could not allocate frame.\n");



More information about the ffmpeg-cvslog mailing list