mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
avfilter: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
This commit is contained in:
@@ -275,7 +275,7 @@ static int push_frame(AVFilterContext *ctx)
|
||||
if (!out)
|
||||
return AVERROR(ENOMEM);
|
||||
out->pts += s->duration - s->start_pts;
|
||||
pts = out->pts + av_frame_get_pkt_duration(out);
|
||||
pts = out->pts + out->pkt_duration;
|
||||
ret = ff_filter_frame(outlink, out);
|
||||
s->current_frame++;
|
||||
|
||||
@@ -307,7 +307,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
s->nb_frames++;
|
||||
s->duration = frame->pts + av_frame_get_pkt_duration(frame);
|
||||
s->duration = frame->pts + frame->pkt_duration;
|
||||
ret = ff_filter_frame(outlink, frame);
|
||||
} else {
|
||||
av_frame_free(&frame);
|
||||
|
||||
Reference in New Issue
Block a user