You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	copy pts and format props between lavfi buffer and frame.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
				
					committed by
					
						 Michael Niedermayer
						Michael Niedermayer
					
				
			
			
				
	
			
			
			
						parent
						
							c7c976c6d7
						
					
				
				
					commit
					a80217a5ee
				
			| @@ -66,6 +66,7 @@ int avfilter_fill_frame_from_audio_buffer_ref(AVFrame *frame, | ||||
|     frame->pkt_pos    = samplesref->pos; | ||||
|     frame->format     = samplesref->format; | ||||
|     frame->nb_samples = samplesref->audio->nb_samples; | ||||
|     frame->pts        = samplesref->pts; | ||||
|  | ||||
|     return 0; | ||||
| } | ||||
| @@ -86,6 +87,8 @@ int avfilter_fill_frame_from_video_buffer_ref(AVFrame *frame, | ||||
|     frame->sample_aspect_ratio = picref->video->sample_aspect_ratio; | ||||
|     frame->width            = picref->video->w; | ||||
|     frame->height           = picref->video->h; | ||||
|     frame->format           = picref->format; | ||||
|     frame->pts              = picref->pts; | ||||
|  | ||||
|     return 0; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user