You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	ffplay: use AVFrame accessor.
This commit is contained in:
		
							
								
								
									
										2
									
								
								ffplay.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								ffplay.c
									
									
									
									
									
								
							| @@ -1500,7 +1500,7 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke | ||||
|         int ret = 1; | ||||
|  | ||||
|         if (decoder_reorder_pts == -1) { | ||||
|             *pts = *(int64_t*)av_opt_ptr(avcodec_get_frame_class(), frame, "best_effort_timestamp"); | ||||
|             *pts = av_frame_get_best_effort_timestamp(frame); | ||||
|         } else if (decoder_reorder_pts) { | ||||
|             *pts = frame->pkt_pts; | ||||
|         } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user