mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-18 13:00:00 +01:00
avfilter/vsrc_testsrc: set video frame duration
This commit is contained in:
@@ -183,6 +183,7 @@ static int activate(AVFilterContext *ctx)
|
|||||||
if (!frame)
|
if (!frame)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
frame->pts = test->pts;
|
frame->pts = test->pts;
|
||||||
|
frame->duration = 1;
|
||||||
frame->key_frame = 1;
|
frame->key_frame = 1;
|
||||||
frame->interlaced_frame = 0;
|
frame->interlaced_frame = 0;
|
||||||
frame->pict_type = AV_PICTURE_TYPE_I;
|
frame->pict_type = AV_PICTURE_TYPE_I;
|
||||||
|
|||||||
Reference in New Issue
Block a user