Anton Khirnov <an...@khirnov.net> writes:

> From: Michael Niedermayer <michae...@gmx.at>

This isn't his patch anymore, is it?

> Signed-off-by: Anton Khirnov <an...@khirnov.net>
> ---
>  ffmpeg.c |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/ffmpeg.c b/ffmpeg.c
> index 5ab3c7a..afd4374 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -2460,14 +2460,13 @@ static int transcode(AVFormatContext **output_files,
>          print_sdp(output_files, nb_output_files);
>      }
>  
> -    if (!using_stdin && verbose >= 0) {
> +    if (verbose >= 0)
>  #if HAVE_KBHIT
>          fprintf(stderr, "Press [q] to stop encoding\n");
>  #else
>          fprintf(stderr, "Press ctrl-c to stop encoding\n");
>  #endif
> -        avio_set_interrupt_cb(decode_interrupt_cb);
> -    }

This isn't quite correct.  The q key handling on those systems that use
it obviously doesn't work if stdin is used for something else.

> +    avio_set_interrupt_cb(decode_interrupt_cb);
>      term_init();
>  
>      timer_start = av_gettime();
> -- 


-- 
Måns Rullgård
m...@mansr.com
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to