Commit 001567c7 authored by Carl Eugen Hoyos's avatar 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
parent efaf4488
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment