diff mbox series

[FFmpeg-devel,v1] ffplay: remove unused code

Message ID 20200910010344.31707-1-junli1026@gmail.com
State New
Headers show
Series [FFmpeg-devel,v1] ffplay: remove unused code
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Jun Li Sept. 10, 2020, 1:03 a.m. UTC
Signed-off-by: Jun Li <junli1026@gmail.com>
---
 fftools/ffplay.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Steven Liu Sept. 10, 2020, 2:51 a.m. UTC | #1
> 2020年9月10日 上午9:03,Jun Li <junli1026@gmail.com> 写道:
> 
> Signed-off-by: Jun Li <junli1026@gmail.com>
> ---
> fftools/ffplay.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/fftools/ffplay.c b/fftools/ffplay.c
> index 9ff0425163..04cbcfe0e3 100644
> --- a/fftools/ffplay.c
> +++ b/fftools/ffplay.c
> @@ -1568,7 +1568,7 @@ static double vp_duration(VideoState *is, Frame *vp, Frame *nextvp) {
>     }
> }
> 
> -static void update_video_pts(VideoState *is, double pts, int64_t pos, int serial) {
> +static void update_video_pts(VideoState *is, double pts, int serial) {
>     /* update current video pts */
>     set_clock(&is->vidclk, pts, serial);
>     sync_clock_to_slave(&is->extclk, &is->vidclk);
> @@ -1633,7 +1633,7 @@ retry:
> 
>             SDL_LockMutex(is->pictq.mutex);
>             if (!isnan(vp->pts))
> -                update_video_pts(is, vp->pts, vp->pos, vp->serial);
> +                update_video_pts(is, vp->pts, vp->serial);
>             SDL_UnlockMutex(is->pictq.mutex);
> 
>             if (frame_queue_nb_remaining(&is->pictq) > 1) {
> -- 
> 2.17.1
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

LGTM


Thanks

Steven Liu
diff mbox series

Patch

diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index 9ff0425163..04cbcfe0e3 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -1568,7 +1568,7 @@  static double vp_duration(VideoState *is, Frame *vp, Frame *nextvp) {
     }
 }
 
-static void update_video_pts(VideoState *is, double pts, int64_t pos, int serial) {
+static void update_video_pts(VideoState *is, double pts, int serial) {
     /* update current video pts */
     set_clock(&is->vidclk, pts, serial);
     sync_clock_to_slave(&is->extclk, &is->vidclk);
@@ -1633,7 +1633,7 @@  retry:
 
             SDL_LockMutex(is->pictq.mutex);
             if (!isnan(vp->pts))
-                update_video_pts(is, vp->pts, vp->pos, vp->serial);
+                update_video_pts(is, vp->pts, vp->serial);
             SDL_UnlockMutex(is->pictq.mutex);
 
             if (frame_queue_nb_remaining(&is->pictq) > 1) {