On 9/18/11 7:02 AM, Anton Khirnov wrote:
From: Stefano Sabatini<[email protected]>

-1 is more correct than 0, as the position in the file is undefined.

Signed-off-by: Anton Khirnov<[email protected]>
---
  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 fafa219..9fd1395 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,

I'd keep it aligned.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to