summaryrefslogtreecommitdiff
path: root/libavcodec/xsubenc.c
diff options
context:
space:
mode:
authorErik Olofsson <eaj.olofsson@gmail.com>2013-11-07 21:07:11 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-12 03:15:33 +0100
commitda9d36055ab1b485d0fd14c9e707ee1705322247 (patch)
treec25467aeedc2fc3b1f5d580b8426837ab65ae5e8 /libavcodec/xsubenc.c
parent3b1dcdec7d85f25b39fc90aed026419d394b78a5 (diff)
downloadffmpeg-da9d36055ab1b485d0fd14c9e707ee1705322247.tar.gz
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: Erik Olofsson <eaj.olofsson@gmail.com> Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/xsubenc.c')
-rw-r--r--libavcodec/xsubenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/xsubenc.c b/libavcodec/xsubenc.c
index bb2cdb0529..53f4d6c3a9 100644
--- a/libavcodec/xsubenc.c
+++ b/libavcodec/xsubenc.c
@@ -206,6 +206,8 @@ static av_cold int xsub_encoder_init(AVCodecContext *avctx)
if (!avctx->codec_tag)
avctx->codec_tag = MKTAG('D','X','S','B');
+ avctx->bits_per_coded_sample = 4;
+
return 0;
}