mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/af_atempo: clear references before returning error.
Once the frame has been given to ff_filter_frame(), it can no longer be used, even on error. Fix trac ticket #3430.
This commit is contained in:
parent
c37bbe54f4
commit
bc6901c949
@ -1058,11 +1058,11 @@ static int push_samples(ATempoContext *atempo,
|
|||||||
outlink->time_base);
|
outlink->time_base);
|
||||||
|
|
||||||
ret = ff_filter_frame(outlink, atempo->dst_buffer);
|
ret = ff_filter_frame(outlink, atempo->dst_buffer);
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
atempo->dst_buffer = NULL;
|
atempo->dst_buffer = NULL;
|
||||||
atempo->dst = NULL;
|
atempo->dst = NULL;
|
||||||
atempo->dst_end = NULL;
|
atempo->dst_end = NULL;
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
atempo->nsamples_out += n_out;
|
atempo->nsamples_out += n_out;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user