1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

Set bits_per_coded_sample when encoding Y41P.

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

Reviewed-by: Paul B Mahol
This commit is contained in:
Carl Eugen Hoyos 2012-01-03 23:05:54 +01:00
parent efaf448888
commit 001567c767

View File

@ -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");