mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-28 17:51:05 +00:00
avconv: use only meaningful timestamps in start time check.
This commit is contained in:
parent
b98c8f4f2b
commit
53ddd43f0c
3
avconv.c
3
avconv.c
@ -1560,7 +1560,7 @@ static int poll_filters(void)
|
||||
break;
|
||||
|
||||
avfilter_copy_buf_props(filtered_frame, picref);
|
||||
if (picref->pts != AV_NOPTS_VALUE)
|
||||
if (picref->pts != AV_NOPTS_VALUE) {
|
||||
filtered_frame->pts = av_rescale_q(picref->pts,
|
||||
ost->filter->filter->inputs[0]->time_base,
|
||||
ost->st->codec->time_base) -
|
||||
@ -1572,6 +1572,7 @@ static int poll_filters(void)
|
||||
avfilter_unref_buffer(picref);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
switch (ost->filter->filter->inputs[0]->type) {
|
||||
case AVMEDIA_TYPE_VIDEO:
|
||||
|
Loading…
Reference in New Issue
Block a user