diff mbox series

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

Message ID tencent_BCE61E90AAA6D8A7CB2AA7D331DC630B9906@qq.com
State Accepted
Commit 117672c8144b55452dbbecca5bbad88a292430e4
Headers show
Series [FFmpeg-devel] ffplay: don't shadow global variable | 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
andriy/make_aarch64_jetson success Make finished
andriy/make_fate_aarch64_jetson success Make fate finished
andriy/make_armv7_RPi4 success Make finished
andriy/make_fate_armv7_RPi4 success Make fate finished

Commit Message

Zhao Zhili March 16, 2022, 2:14 a.m. UTC
---
 fftools/ffplay.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Marton Balint March 20, 2022, 10:58 p.m. UTC | #1
On Wed, 16 Mar 2022, Zhao Zhili wrote:

> ---
> fftools/ffplay.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fftools/ffplay.c b/fftools/ffplay.c
> index 92ad7ce1a6..b583225d53 100644
> --- a/fftools/ffplay.c
> +++ b/fftools/ffplay.c
> @@ -1454,13 +1454,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);
> --

Will apply, thanks.

Marton
diff mbox series

Patch

diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index 92ad7ce1a6..b583225d53 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -1454,13 +1454,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);