diff mbox series

[FFmpeg-devel,03/24] ffmpeg: remove a redundant assignment of interrupt_callback

Message ID 20211213152042.5900-3-anton@khirnov.net
State Accepted
Commit 1b24a1ea14c028e4f98ea19098aec41334e9a7f0
Headers show
Series [FFmpeg-devel,01/24] ffmpeg: pass the muxer context explicitly to some functions | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Anton Khirnov Dec. 13, 2021, 3:20 p.m. UTC
It is already set in open_output_file().
---
 fftools/ffmpeg.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Andreas Rheinhardt Dec. 16, 2021, 12:38 p.m. UTC | #1
Anton Khirnov:
> It is already set in open_output_file().
> ---
>  fftools/ffmpeg.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
> index b77531cb7f..fb017a1e37 100644
> --- a/fftools/ffmpeg.c
> +++ b/fftools/ffmpeg.c
> @@ -2947,8 +2947,6 @@ static int check_init_output_file(OutputFile *of, int file_index)
>              return 0;
>      }
>  
> -    of->ctx->interrupt_callback = int_cb;
> -
>      ret = avformat_write_header(of->ctx, &of->opts);
>      if (ret < 0) {
>          av_log(NULL, AV_LOG_ERROR,
> 

Seems fine.

- Andreas
diff mbox series

Patch

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index b77531cb7f..fb017a1e37 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -2947,8 +2947,6 @@  static int check_init_output_file(OutputFile *of, int file_index)
             return 0;
     }
 
-    of->ctx->interrupt_callback = int_cb;
-
     ret = avformat_write_header(of->ctx, &of->opts);
     if (ret < 0) {
         av_log(NULL, AV_LOG_ERROR,