You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter/avf_avectorscope: fix crash when using vflip filter
This commit is contained in:
		| @@ -117,7 +117,7 @@ AVFILTER_DEFINE_CLASS(avectorscope); | |||||||
|  |  | ||||||
| static void draw_dot(AudioVectorScopeContext *s, unsigned x, unsigned y) | static void draw_dot(AudioVectorScopeContext *s, unsigned x, unsigned y) | ||||||
| { | { | ||||||
|     const int linesize = s->outpicref->linesize[0]; |     const ptrdiff_t linesize = s->outpicref->linesize[0]; | ||||||
|     uint8_t *dst; |     uint8_t *dst; | ||||||
|  |  | ||||||
|     if (s->zoom > 1) { |     if (s->zoom > 1) { | ||||||
| @@ -128,7 +128,7 @@ static void draw_dot(AudioVectorScopeContext *s, unsigned x, unsigned y) | |||||||
|         x = FFMIN(x, s->w - 1); |         x = FFMIN(x, s->w - 1); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     dst = &s->outpicref->data[0][y * linesize + x * 4]; |     dst = s->outpicref->data[0] + y * linesize + x * 4; | ||||||
|     dst[0] = FFMIN(dst[0] + s->contrast[0], 255); |     dst[0] = FFMIN(dst[0] + s->contrast[0], 255); | ||||||
|     dst[1] = FFMIN(dst[1] + s->contrast[1], 255); |     dst[1] = FFMIN(dst[1] + s->contrast[1], 255); | ||||||
|     dst[2] = FFMIN(dst[2] + s->contrast[2], 255); |     dst[2] = FFMIN(dst[2] + s->contrast[2], 255); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user