[FFmpeg-devel] [PATCH 1/2] avformat/concatf: check if any nodes were allocated
James Almer
jamrial at gmail.com
Fri Apr 14 15:15:42 EEST 2023
On 4/12/2023 10:53 PM, James Almer wrote:
> Fixes ticket #10304
>
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> libavformat/concat.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libavformat/concat.c b/libavformat/concat.c
> index dc0985e40c..825e43a7fa 100644
> --- a/libavformat/concat.c
> +++ b/libavformat/concat.c
> @@ -296,6 +296,8 @@ static av_cold int concatf_open(URLContext *h, const char *uri, int flags)
> av_bprint_finalize(&bp, NULL);
> data->length = i;
>
> + if (!data->length)
> + err = AVERROR_INVALIDDATA;
> if (err < 0)
> concat_close(h);
Will apply set.
More information about the ffmpeg-devel
mailing list