avfilter/vsrc_testsrc: set video frame duration

pull/388/head
Paul B Mahol 2 years ago
parent aa24719843
commit 218278b11d
  1. 1
      libavfilter/vsrc_testsrc.c

@ -183,6 +183,7 @@ static int activate(AVFilterContext *ctx)
if (!frame)
return AVERROR(ENOMEM);
frame->pts = test->pts;
frame->duration = 1;
frame->key_frame = 1;
frame->interlaced_frame = 0;
frame->pict_type = AV_PICTURE_TYPE_I;

Loading…
Cancel
Save