<div dir="ltr">J-b<br><div class="gmail_extra"><br></div><div class="gmail_extra">Good catch, applied.<br><br></div><div class="gmail_extra">Thanks<br><br>Jean-Paul Saman<br></div><div class="gmail_extra"><br><div class="gmail_quote">
On Tue, Aug 12, 2014 at 4:04 AM, Jean-Baptiste Kempf <span dir="ltr"><<a href="mailto:jb@videolan.org" target="_blank">jb@videolan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
See ISO/IEC 13818-1 : 2000, table 2-40 and 2.6.3<br>
<br>
See <a href="https://trac.videolan.org/vlc/ticket/4200" target="_blank">https://trac.videolan.org/vlc/ticket/4200</a><br>
---<br>
src/descriptors/dr_02.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/descriptors/dr_02.c b/src/descriptors/dr_02.c<br>
index 1c35d83..774a1c0 100644<br>
--- a/src/descriptors/dr_02.c<br>
+++ b/src/descriptors/dr_02.c<br>
@@ -60,7 +60,7 @@ dvbpsi_vstream_dr_t * dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor)<br>
if(!p_decoded) return NULL;<br>
<br>
/* Decode data and check the length */<br>
- p_decoded->b_mpeg2 = (p_descriptor->p_data[0] & 0x04) ? true : false;<br>
+ p_decoded->b_mpeg2 = !((p_descriptor->p_data[0] & 0x04) ? true : false);<br>
if( (!p_decoded->b_mpeg2 && (p_descriptor->i_length != 1))<br>
|| (p_decoded->b_mpeg2 && (p_descriptor->i_length != 3)))<br>
{<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.0.4<br>
<br>
_______________________________________________<br>
libdvbpsi-devel mailing list<br>
<a href="mailto:libdvbpsi-devel@videolan.org">libdvbpsi-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/libdvbpsi-devel" target="_blank">https://mailman.videolan.org/listinfo/libdvbpsi-devel</a><br>
</font></span></blockquote></div><br></div></div>