Stability of ts input
Steve Brown
sbrown at cortland.com
Tue Apr 17 16:27:54 CEST 2001
Henri Fallon wrote:
>
> On Thu, Apr 12, 2001, Steve Brown wrote:
> > I have found that if I run with the -vvvv switch, I get spurious PES
> > packet size error messages.
>
> This is one of my concerns. I'll try to figure out the reason of these
> messages as soon as the exams are taken ( in 2 weeks ).
>
>
This seems to fix the PES size errors. With the current implementation,
real_size is always at least 6.
Steve
-- Attached file included as plaintext by Listar --
-- File: vlc.diff
Index: src/input/mpeg_system.c
===================================================================
RCS file: /var/cvs/videolan/vlc/src/input/mpeg_system.c,v
retrieving revision 1.50
diff -u -r1.50 mpeg_system.c
--- src/input/mpeg_system.c 2001/04/13 01:49:22 1.50
+++ src/input/mpeg_system.c 2001/04/17 14:17:40
@@ -148,7 +148,8 @@
}
/* Get the PES size if defined */
- p_es->i_pes_real_size = U16_AT(p_header + 4) + 6;
+ p_es->i_pes_real_size = U16_AT(p_header + 4);
+ if (p_es->i_pes_real_size) p_es->i_pes_real_size += 6;
/* First read the 6 header bytes common to all PES packets:
* use them to test the PES validity */
More information about the vlc
mailing list