Commit 25cdb9fd authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf Committed by Jean-Paul Saman

Correctly flag mpeg2 video data in video_stream_descriptor

See ISO/IEC 13818-1 : 2000, table 2-40 and 2.6.3

See https://trac.videolan.org/vlc/ticket/4200Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent eff73f4f
......@@ -60,7 +60,7 @@ dvbpsi_vstream_dr_t * dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor)
if(!p_decoded) return NULL;
/* Decode data and check the length */
p_decoded->b_mpeg2 = (p_descriptor->p_data[0] & 0x04) ? true : false;
p_decoded->b_mpeg2 = !((p_descriptor->p_data[0] & 0x04) ? true : false);
if( (!p_decoded->b_mpeg2 && (p_descriptor->i_length != 1))
|| (p_decoded->b_mpeg2 && (p_descriptor->i_length != 3)))
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment