Skip to content
Snippets Groups Projects
Commit c70e8523 authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

vsrc_testsrc: set more properties in the output frames

parent bf917e26
No related branches found
No related tags found
No related merge requests found
...@@ -132,6 +132,10 @@ static int request_frame(AVFilterLink *outlink) ...@@ -132,6 +132,10 @@ static int request_frame(AVFilterLink *outlink)
picref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE, picref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE,
test->w, test->h); test->w, test->h);
picref->pts = test->pts++; picref->pts = test->pts++;
picref->pos = -1;
picref->video->key_frame = 1;
picref->video->interlaced = 0;
picref->video->pict_type = AV_PICTURE_TYPE_I;
picref->video->sample_aspect_ratio = test->sar; picref->video->sample_aspect_ratio = test->sar;
test->nb_frame++; test->nb_frame++;
test->fill_picture_fn(outlink->src, picref); test->fill_picture_fn(outlink->src, picref);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment