[vlc-commits] codec: mpeg_audio: fix pts update

Tristan Matthews git at videolan.org
Sat Nov 8 19:38:32 CET 2014


vlc/vlc-2.2 | branch: master | Tristan Matthews <tmatth at videolan.org> | Sat Nov  8 13:04:10 2014 -0500| [330c495ac660e1851324a959a3146032f66e8c70] | committer: Tristan Matthews

codec: mpeg_audio: fix pts update

Fixes #12722

(cherry picked from commit 72b03859fd8b715d9baeb5b378170d81517b01e8)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=330c495ac660e1851324a959a3146032f66e8c70
---

 modules/codec/mpeg_audio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/mpeg_audio.c b/modules/codec/mpeg_audio.c
index c9f7bac..f893dd2 100644
--- a/modules/codec/mpeg_audio.c
+++ b/modules/codec/mpeg_audio.c
@@ -248,7 +248,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
             /* New frame, set the Presentation Time Stamp */
             p_sys->i_pts = p_sys->bytestream.p_block->i_pts;
             if( p_sys->i_pts > VLC_TS_INVALID &&
-                p_sys->i_pts != date_Get( &p_sys->end_date ) )
+                p_sys->i_pts > date_Get( &p_sys->end_date ) )
             {
                 date_Set( &p_sys->end_date, p_sys->i_pts );
             }



More information about the vlc-commits mailing list