[FFmpeg-devel] [PATCH 2/2] libavcodec/xsubenc.c: set coded_bits_per_sample

Erik Olofsson eaj.olofsson at gmail.com
Wed Nov 6 21:22:25 CET 2013


Signed-off-by: Erik Olofsson <eaj.olofsson at gmail.com>
---
 libavcodec/xsubenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/xsubenc.c b/libavcodec/xsubenc.c
index bb2cdb0..53f4d6c 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;
 }
 
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list