[vlc-commits] demux: flac: validate first pts only when packetizer succeeds (fix #17111)
Francois Cartegnie
git at videolan.org
Thu Feb 9 23:36:11 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb 9 23:32:44 2017 +0100| [ade9c5b9d4e6f67fce15b3dca877a7754f78e41d] | committer: Francois Cartegnie
demux: flac: validate first pts only when packetizer succeeds (fix #17111)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ade9c5b9d4e6f67fce15b3dca877a7754f78e41d
---
modules/demux/flac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/flac.c b/modules/demux/flac.c
index b5cab9a..f87057f 100644
--- a/modules/demux/flac.c
+++ b/modules/demux/flac.c
@@ -235,12 +235,13 @@ static int Demux( demux_t *p_demux )
p_sys->i_next_block_flags = 0;
p_sys->p_current_block->i_pts =
p_sys->p_current_block->i_dts = p_sys->b_start ? VLC_TS_0 : VLC_TS_INVALID;
- p_sys->b_start = false;
}
while( (p_block_out = p_sys->p_packetizer->pf_packetize( p_sys->p_packetizer,
(p_sys->p_current_block) ? &p_sys->p_current_block : NULL )) )
{
+ /* Only clear on output when packet is accepted as sync #17111 */
+ p_sys->b_start = false;
while( p_block_out )
{
block_t *p_next = p_block_out->p_next;
More information about the vlc-commits
mailing list