aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-06-18 01:47:37 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-06-18 02:09:07 +0200
commit0c6cf3fa7cc7a9e01a5b78fd11f10f81c4b49b77 (patch)
tree1955b18f098211789db5af8971944800a5ef94a7
parentbb3a2b723ab2f94d24cac86b692c52c781338e7d (diff)
downloadffmpeg-0c6cf3fa7cc7a9e01a5b78fd11f10f81c4b49b77.tar.gz
vsrc_color: set output pos values to -1
-1 is more correct than 0, as the position in the file is undefined.
-rw-r--r--libavfilter/vsrc_color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_color.c b/libavfilter/vsrc_color.c
index 43f01e3f4d..6d8b5e9f1a 100644
--- a/libavfilter/vsrc_color.c
+++ b/libavfilter/vsrc_color.c
@@ -139,7 +139,7 @@ static int color_request_frame(AVFilterLink *link)
AVFilterBufferRef *picref = avfilter_get_video_buffer(link, AV_PERM_WRITE, color->w, color->h);
picref->video->sample_aspect_ratio = (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,