[vlc-commits] demux/mpeg: ps: fixup of 1901851
Filip Roséen
git at videolan.org
Wed Mar 22 20:06:38 CET 2017
vlc | branch: master | Filip Roséen <filip at atch.se> | Tue Mar 21 03:02:20 2017 +0100| [9513f3416dce0e5f4c12dacb6f7cadee6a643738] | committer: Jean-Baptiste Kempf
demux/mpeg: ps: fixup of 1901851
p_sys->i_first_scr is initialized to -1, denoting that no SCR has been
read from the underlying stream. This change is a simple fixup of
the changes introduced by 1901851 (as it lacks the correct comparision
in the relevant if-condition).
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9513f3416dce0e5f4c12dacb6f7cadee6a643738
---
modules/demux/mpeg/ps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mpeg/ps.c b/modules/demux/mpeg/ps.c
index b4f1afb..75d3512 100644
--- a/modules/demux/mpeg/ps.c
+++ b/modules/demux/mpeg/ps.c
@@ -318,7 +318,7 @@ static int Probe( demux_t *p_demux, bool b_end )
int64_t i_scr; int dummy;
if( !b_end && !ps_pkt_parse_pack( p_pkt, &i_scr, &dummy ) )
{
- if( p_sys->i_first_scr )
+ if( p_sys->i_first_scr == -1 )
p_sys->i_first_scr = i_scr;
}
p_sys->b_have_pack = true;
More information about the vlc-commits
mailing list