mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-25 12:19:52 +00:00
vf_select: set start_t if undefined
Previously start_t was never set. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
This commit is contained in:
parent
9acffed9e0
commit
298fccad21
@ -185,6 +185,8 @@ static int select_frame(AVFilterContext *ctx, AVFilterBufferRef *picref)
|
||||
|
||||
if (isnan(select->var_values[VAR_START_PTS]))
|
||||
select->var_values[VAR_START_PTS] = TS2D(picref->pts);
|
||||
if (isnan(select->var_values[VAR_START_T]))
|
||||
select->var_values[VAR_START_T] = TS2D(picref->pts) * av_q2d(inlink->time_base);
|
||||
|
||||
select->var_values[VAR_PTS] = TS2D(picref->pts);
|
||||
select->var_values[VAR_T ] = picref->pts * av_q2d(inlink->time_base);
|
||||
|
Loading…
Reference in New Issue
Block a user