mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avfilter/ff_filter_frame_needs_framing: fix handling of AV_NOPTS_VALUE
Fixes Ticket3015 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8c7bc7d3e5
commit
8780f7fbfa
@ -1092,8 +1092,9 @@ static int ff_filter_frame_needs_framing(AVFilterLink *link, AVFrame *frame)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
av_frame_copy_props(pbuf, frame);
|
av_frame_copy_props(pbuf, frame);
|
||||||
pbuf->pts = frame->pts +
|
pbuf->pts = frame->pts;
|
||||||
av_rescale_q(inpos, samples_tb, link->time_base);
|
if (pbuf->pts != AV_NOPTS_VALUE)
|
||||||
|
pbuf->pts += av_rescale_q(inpos, samples_tb, link->time_base);
|
||||||
pbuf->nb_samples = 0;
|
pbuf->nb_samples = 0;
|
||||||
}
|
}
|
||||||
nb_samples = FFMIN(insamples,
|
nb_samples = FFMIN(insamples,
|
||||||
|
Loading…
Reference in New Issue
Block a user