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>
This commit is contained in:
		
				
					committed by
					
						
						Anton Khirnov
					
				
			
			
				
	
			
			
			
						parent
						
							753890d0db
						
					
				
				
					commit
					91aff2665d
				
			@@ -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);
 | 
					    AVFilterBufferRef *picref = avfilter_get_video_buffer(link, AV_PERM_WRITE, color->w, color->h);
 | 
				
			||||||
    picref->video->pixel_aspect = (AVRational) {1, 1};
 | 
					    picref->video->pixel_aspect = (AVRational) {1, 1};
 | 
				
			||||||
    picref->pts                 = av_rescale_q(color->pts++, color->time_base, AV_TIME_BASE_Q);
 | 
					    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));
 | 
					    avfilter_start_frame(link, avfilter_ref_buffer(picref, ~0));
 | 
				
			||||||
    ff_draw_rectangle(picref->data, picref->linesize,
 | 
					    ff_draw_rectangle(picref->data, picref->linesize,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user