mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +00:00
avfilter/af_asetnsamples: fix last frame props
Frame properties were not copied, so e.g. PTS was not set for the last frame.
Regression since ef3babb2c7
.
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
b6b3159b04
commit
f9e947845f
@ -76,6 +76,13 @@ static int activate(AVFilterContext *ctx)
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
ret = av_frame_copy_props(pad_frame, frame);
|
||||
if (ret < 0) {
|
||||
av_frame_free(&pad_frame);
|
||||
av_frame_free(&frame);
|
||||
return ret;
|
||||
}
|
||||
|
||||
av_samples_copy(pad_frame->extended_data, frame->extended_data,
|
||||
0, 0, frame->nb_samples, frame->channels, frame->format);
|
||||
av_samples_set_silence(pad_frame->extended_data, frame->nb_samples,
|
||||
|
Loading…
Reference in New Issue
Block a user