You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	ffplay: set base in dr1 allocation.
This matches the default non dr1 allocator Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
							
								
								
									
										1
									
								
								ffplay.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								ffplay.c
									
									
									
									
									
								
							| @@ -1582,6 +1582,7 @@ static int input_get_buffer(AVCodecContext *codec, AVFrame *pic) | ||||
|         unsigned hshift = (i == 1 || i == 2) ? av_pix_fmt_descriptors[ref->format].log2_chroma_w : 0; | ||||
|         unsigned vshift = (i == 1 || i == 2) ? av_pix_fmt_descriptors[ref->format].log2_chroma_h : 0; | ||||
|  | ||||
|         pic->base[i]     = ref->data[i]; | ||||
|         if (ref->data[i]) { | ||||
|             ref->data[i]    += ((edge * pixel_size) >> hshift) + ((edge * ref->linesize[i]) >> vshift); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user