Skip to content
Snippets Groups Projects
Commit 8972e11e authored by Rafaël Carré's avatar Rafaël Carré
Browse files

avformat: set bits per pixel for video codecs

Fix decoding of MSRLE samples with avformat demuxer
parent 5f1111b2
No related branches found
No related tags found
No related merge requests found
......@@ -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 )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment