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

2014-11-08 Thread Tristan Matthews
vlc/vlc-2.2 | branch: master | Tristan Matthews  | 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 );
 }

___
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits


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

2014-11-08 Thread Tristan Matthews
vlc | branch: master | Tristan Matthews  | Sat Nov  8 
13:04:10 2014 -0500| [72b03859fd8b715d9baeb5b378170d81517b01e8] | committer: 
Tristan Matthews

codec: mpeg_audio: fix pts update

Fixes #12722

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72b03859fd8b715d9baeb5b378170d81517b01e8
---

 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 );
 }

___
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits