[FFmpeg-devel] [PATCH 11/12] af_amix: Add missing error check
Paul B Mahol
onemda at gmail.com
Fri Jul 7 00:24:47 EEST 2017
On 7/6/17, Derek Buitenhuis <derek.buitenhuis at gmail.com> wrote:
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> ---
> libavfilter/af_amix.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c
> index f19e6b39a5..809c8bf9ca 100644
> --- a/libavfilter/af_amix.c
> +++ b/libavfilter/af_amix.c
> @@ -468,6 +468,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame
> *buf)
>
> ret = av_audio_fifo_write(s->fifos[i], (void **)buf->extended_data,
> buf->nb_samples);
> + if (ret < 0)
> + goto fail;
>
> av_frame_free(&buf);
> return output_frame(outlink, 0);
> --
> 2.11.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
ok
More information about the ffmpeg-devel
mailing list