[vlc-devel] [PATCH] avformat: set bits per pixel for video codecs
Rafaël Carré
funman at videolan.org
Wed Oct 16 20:30:24 CEST 2013
Fix decoding of MSRLE samples with avformat demuxer
---
modules/demux/avformat/demux.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index b0f73de..51ae99b 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -304,6 +304,7 @@ int OpenDemux( vlc_object_t *p_this )
case AVMEDIA_TYPE_VIDEO:
es_format_Init( &fmt, VIDEO_ES, fcc );
+ fmt.video.i_bits_per_pixel = cc->bits_per_coded_sample;
/* Special case for raw video data */
if( cc->codec_id == AV_CODEC_ID_RAWVIDEO )
{
--
1.8.3.2
More information about the vlc-devel
mailing list