diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-18 03:47:37 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-19 14:44:02 +0400 |
commit | 91aff2665dc5bcd74ab3a3a2ae47b653fecdf178 (patch) | |
tree | 6cf874637fb23e7d55ffbb44d881d09ced5a272c /libavfilter | |
parent | 753890d0dbb641af156706594dfb2dec39644f4a (diff) |
vsrc_color: set output pos values to -1
-1 is more correct than 0, as the position in the file is undefined.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vsrc_color.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_color.c b/libavfilter/vsrc_color.c index fafa219435..1248ffd959 100644 --- a/libavfilter/vsrc_color.c +++ b/libavfilter/vsrc_color.c @@ -140,7 +140,7 @@ static int color_request_frame(AVFilterLink *link) AVFilterBufferRef *picref = avfilter_get_video_buffer(link, AV_PERM_WRITE, color->w, color->h); picref->video->pixel_aspect = (AVRational) {1, 1}; picref->pts = av_rescale_q(color->pts++, color->time_base, AV_TIME_BASE_Q); - picref->pos = 0; + picref->pos = -1; avfilter_start_frame(link, avfilter_ref_buffer(picref, ~0)); ff_draw_rectangle(picref->data, picref->linesize, |