<div dir="ltr">Patch applied and will show up in <a href="http://git.videolan.org/libdvbpsi.git">git.videolan.org/libdvbpsi.git</a> shortly after regression tests have run.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 1, 2015 at 7:11 PM, Daniel Kamil Kozar <span dir="ltr"><<a href="mailto:dkk089@gmail.com" target="_blank">dkk089@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">dvbpsi_GenVStreamDr set the MPEG_1_only_flag incorrectly : it should be<br>
set only if the descriptor does not carry extra information about MPEG-2<br>
video. The previous behaviour was exactly the opposite.<br>
---<br>
src/descriptors/dr_02.c | 3 +--<br>
1 file changed, 1 insertion(+), 2 deletions(-)<br>
<br>
diff --git a/src/descriptors/dr_02.c b/src/descriptors/dr_02.c<br>
index 774a1c0..e85f61d 100644<br>
--- a/src/descriptors/dr_02.c<br>
+++ b/src/descriptors/dr_02.c<br>
@@ -100,7 +100,7 @@ dvbpsi_descriptor_t * dvbpsi_GenVStreamDr(dvbpsi_vstream_dr_t * p_decoded,<br>
return NULL;<br>
<br>
/* Encode data */<br>
- p_descriptor->p_data[0] = 0;<br>
+ p_descriptor->p_data[0] = (p_decoded->b_mpeg2) ? 0 : 0x04;<br>
if (p_decoded->b_multiple_frame_rate)<br>
p_descriptor->p_data[0] |= 0x80;<br>
p_descriptor->p_data[0] |= (p_decoded->i_frame_rate_code & 0x0f) << 3;<br>
@@ -111,7 +111,6 @@ dvbpsi_descriptor_t * dvbpsi_GenVStreamDr(dvbpsi_vstream_dr_t * p_decoded,<br>
<br>
if (p_decoded->b_mpeg2)<br>
{<br>
- p_descriptor->p_data[0] |= 0x04;<br>
p_descriptor->p_data[1] = p_decoded->i_profile_level_indication;<br>
p_descriptor->p_data[2] = 0x1f;<br>
p_descriptor->p_data[2] |= (p_decoded->i_chroma_format & 0x03) << 6;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.4.2<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>