[FFmpeg-devel] [PATCH] Added interrupt to av_read_frame() in utils.c. This allows av_read_frame to return after a timeout period.

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Nov 21 11:42:57 EET 2019


Am Mi., 20. Nov. 2019 um 23:42 Uhr schrieb <ggarra13 at gmail.com>:
>
> From: Gonzalo Garramuño <ggarra13 at gmail.com>

I was under the impression that the following patch was written
by Blake Senftner, bsenftner at earthlink.net
Am I wrong?

>  libavformat/utils.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index 8196442dd1..c3c2c77c0c 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -1838,6 +1838,11 @@ int av_read_frame(AVFormatContext *s, AVPacket *pkt)
>              }
>          }
>
> +        if (ff_check_interrupt(&s->interrupt_callback)) {
> +            av_log(s, AV_LOG_DEBUG, "interrupted\n");
> +            return AVERROR_EXIT;
> +        }

Carl Eugen


More information about the ffmpeg-devel mailing list