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

Rafaël Carré git at videolan.org
Fri Oct 18 23:34:27 CEST 2013


vlc/vlc-2.1 | branch: master | Rafaël Carré <funman at videolan.org> | Wed Oct 16 20:29:17 2013 +0200| [dd5084b8036556ac950c1b69696759cd647e787b] | committer: Jean-Baptiste Kempf

avformat: set bits per pixel for video codecs

Fix decoding of MSRLE samples with avformat demuxer

(cherry picked from commit 8972e11e3699989185ab0c587274841dac99f4a6)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 106d796..3bb1266 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -307,6 +307,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