[FFmpeg-cvslog] ffplay: don't shadow global variable

Zhao Zhili git at videolan.org
Mon Mar 21 01:50:28 EET 2022


ffmpeg | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Wed Mar 16 10:14:11 2022 +0800| [117672c8144b55452dbbecca5bbad88a292430e4] | committer: Marton Balint

ffplay: don't shadow global variable

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=117672c8144b55452dbbecca5bbad88a292430e4
---

 fftools/ffplay.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index aef6f5d382..9a5c04e6c6 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -1455,13 +1455,13 @@ static void check_external_clock_speed(VideoState *is) {
 }
 
 /* seek in the stream */
-static void stream_seek(VideoState *is, int64_t pos, int64_t rel, int seek_by_bytes)
+static void stream_seek(VideoState *is, int64_t pos, int64_t rel, int by_bytes)
 {
     if (!is->seek_req) {
         is->seek_pos = pos;
         is->seek_rel = rel;
         is->seek_flags &= ~AVSEEK_FLAG_BYTE;
-        if (seek_by_bytes)
+        if (by_bytes)
             is->seek_flags |= AVSEEK_FLAG_BYTE;
         is->seek_req = 1;
         SDL_CondSignal(is->continue_read_thread);



More information about the ffmpeg-cvslog mailing list