summaryrefslogtreecommitdiff
path: root/libavcodec/y41penc.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-01-03 23:05:54 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-01-03 23:05:54 +0100
commit001567c767132aec24471529a057ac7d74de70a1 (patch)
tree7ea2933129e2d17aa457b2a6b6a68f3573420bca /libavcodec/y41penc.c
parentefaf4488882eb04d604af14d9231db621d308c7a (diff)
Set bits_per_coded_sample when encoding Y41P.
This allows mplayer -vc bt411 to decode files encoded with FFmpeg. Reviewed-by: Paul B Mahol
Diffstat (limited to 'libavcodec/y41penc.c')
-rw-r--r--libavcodec/y41penc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/y41penc.c b/libavcodec/y41penc.c
index aa32403a45..e5905cf6e9 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");