aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhao Zhili <quinkblack@foxmail.com>2022-03-16 10:14:11 +0800
committerMarton Balint <cus@passwd.hu>2022-03-21 00:48:30 +0100
commit117672c8144b55452dbbecca5bbad88a292430e4 (patch)
tree87368b9b3ad9e3f95985164a1bd678f2260dc160
parent269ed0a4138790285b29be9a7f4cb7237c7b6215 (diff)
downloadffmpeg-117672c8144b55452dbbecca5bbad88a292430e4.tar.gz
ffplay: don't shadow global variable
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--fftools/ffplay.c4
1 files 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);