diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-28 01:30:04 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-30 10:03:19 +0200 |
commit | c70e8523af8f4361cc7dc4600246fc8fc13731fa (patch) | |
tree | 9ea8a73c3ec4123eaabcc1dd275985bfe5a66c26 | |
parent | bf917e26e161b9f08bdc8749ae034c28adc45ba0 (diff) | |
download | ffmpeg-c70e8523af8f4361cc7dc4600246fc8fc13731fa.tar.gz |
vsrc_testsrc: set more properties in the output frames
-rw-r--r-- | libavfilter/vsrc_testsrc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 1e3516d28f..5dee1d172f 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -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); |