Commit da9d3605 authored by Erik Olofsson's avatar Erik Olofsson Committed by Michael Niedermayer

libavcodec/xsubenc.c: set coded_bits_per_sample

Explicitly set the number of bits per sample to stop
the avi muxer from guessing at 24 bits.
The result is that bits per pixel in the avi stream header
matches what other XSUB muxers produce, such as AVIAddXSubs.exe
Signed-off-by: 's avatarErik Olofsson <eaj.olofsson@gmail.com>
Reviewed-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3b1dcdec
...@@ -206,6 +206,8 @@ static av_cold int xsub_encoder_init(AVCodecContext *avctx) ...@@ -206,6 +206,8 @@ static av_cold int xsub_encoder_init(AVCodecContext *avctx)
if (!avctx->codec_tag) if (!avctx->codec_tag)
avctx->codec_tag = MKTAG('D','X','S','B'); avctx->codec_tag = MKTAG('D','X','S','B');
avctx->bits_per_coded_sample = 4;
return 0; return 0;
} }
......
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