diff mbox series

[FFmpeg-devel,3/6] fftools/ffplay: drop an unused function argument

Message ID 20230310115635.13639-3-anton@khirnov.net
State Accepted
Commit 9141c0cfd81ec976215563d4819c3501951e5dfd
Headers show
Series [FFmpeg-devel,1/6] lavc/decode: stop mangling last_pkt_props->opaque | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov March 10, 2023, 11:56 a.m. UTC
---
 fftools/ffplay.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Stefano Sabatini March 12, 2023, 3:05 p.m. UTC | #1
On date Friday 2023-03-10 12:56:32 +0100, Anton Khirnov wrote:
> ---
>  fftools/ffplay.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/fftools/ffplay.c b/fftools/ffplay.c
> index d6479aef5f..f09ff59ccc 100644
> --- a/fftools/ffplay.c
> +++ b/fftools/ffplay.c
> @@ -1553,7 +1553,8 @@ 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);
> @@ -1618,7 +1619,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) {

LGTM.
diff mbox series

Patch

diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index d6479aef5f..f09ff59ccc 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -1553,7 +1553,8 @@  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);
@@ -1618,7 +1619,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) {