[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 12:33:57 CET 2014


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

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

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

 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 b0f7716..ec74df8 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -879,6 +879,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