[vlc-commits] avformat: set bits per pixel for video codecs

Rafaël Carré git at videolan.org
Fri Oct 18 21:29:41 CEST 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Oct 16 20:29:17 2013 +0200| [8972e11e3699989185ab0c587274841dac99f4a6] | committer: Rafaël Carré

avformat: set bits per pixel for video codecs

Fix decoding of MSRLE samples with avformat demuxer

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8972e11e3699989185ab0c587274841dac99f4a6
---

 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 )
             {



More information about the vlc-commits mailing list