[vlc-commits] packetizer: flac: don't increment invalid date (fix #22699)
Francois Cartegnie
git at videolan.org
Tue Sep 3 15:40:28 CEST 2019
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Sep 3 15:28:57 2019 +0200| [85d7342f0065a70256b146ec1ab5f357f6745e95] | committer: Francois Cartegnie
packetizer: flac: don't increment invalid date (fix #22699)
vlc-4.0 prevents this in date_Increment()
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=85d7342f0065a70256b146ec1ab5f357f6745e95
---
modules/packetizer/flac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c
index a1a2b5fea4..40251041c3 100644
--- a/modules/packetizer/flac.c
+++ b/modules/packetizer/flac.c
@@ -505,9 +505,10 @@ static block_t *Packetize(decoder_t *p_dec, block_t **pp_block)
}
else
p_sys->p_buf = NULL;
+
+ date_Increment( &p_sys->pts, p_sys->headerinfo.i_frame_length );
}
- date_Increment( &p_sys->pts, p_sys->headerinfo.i_frame_length );
if( out )
out->i_length = date_Get( &p_sys->pts ) - out->i_pts;
else
More information about the vlc-commits
mailing list