mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-11-01 04:53:04 +08:00 
			
		
		
		
	ffmpeg: Fix (next)_dts/pts init.
Based on Anton Khirnovs code. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
							
								
								
									
										3
									
								
								ffmpeg.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ffmpeg.c
									
									
									
									
									
								
							| @@ -2374,8 +2374,9 @@ static int init_input_stream(int ist_index, OutputStream *output_streams, int nb | |||||||
|         assert_avoptions(ist->opts); |         assert_avoptions(ist->opts); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     ist->pts = ist->st->avg_frame_rate.num ? - ist->st->codec->has_b_frames * AV_TIME_BASE / av_q2d(ist->st->avg_frame_rate) : 0; |     ist->dts = ist->st->avg_frame_rate.num ? - ist->st->codec->has_b_frames * AV_TIME_BASE / av_q2d(ist->st->avg_frame_rate) : 0; | ||||||
|     ist->next_pts = AV_NOPTS_VALUE; |     ist->next_pts = AV_NOPTS_VALUE; | ||||||
|  |     ist->next_dts = AV_NOPTS_VALUE; | ||||||
|     ist->is_start = 1; |     ist->is_start = 1; | ||||||
|  |  | ||||||
|     return 0; |     return 0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Niedermayer
					Michael Niedermayer