vsrc_testsrc: set more properties in the output frames

This commit is contained in:
Stefano Sabatini 2011-08-28 01:30:04 +02:00
parent bf917e26e1
commit c70e8523af
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,10 @@ static int request_frame(AVFilterLink *outlink)
picref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE,
test->w, test->h);
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;
test->nb_frame++;
test->fill_picture_fn(outlink->src, picref);