[vlc-commits] transcode: increment input pts even if we don' t need to process that picture

Ilkka Ollakka git at videolan.org
Sat Nov 29 14:06:33 CET 2014


vlc/vlc-2.2 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Nov 29 12:44:23 2014 +0200| [c3d4352ca8e589a7a7e51c871b388d75aeb0a932] | committer: Ilkka Ollakka

transcode: increment input pts even if we don't need to process that picture

(cherry picked from commit 02ef60469a044a8c3d9e2301c66abfcf1644c88a)
Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>

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

 modules/stream_out/transcode/video.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 60b66bb..8e3ce67 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -914,6 +914,7 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
                          p_pic->date, id->i_input_frame_interval, date_Get(&id->next_output_pts) );
 #endif
                 picture_Release( p_pic );
+                date_Increment( &id->next_input_pts, id->p_decoder->fmt_out.video.i_frame_rate_base );
                 continue;
             }
 #if 0



More information about the vlc-commits mailing list