avformat_find_stream_info: move duration guessing after updating codec parameters
This bitrate might not be known otherwise. Bug-Id: 926
This commit is contained in:
		
							parent
							
								
									11843ededa
								
							
						
					
					
						commit
						1ceb07eb31
					
				| @ -2431,8 +2431,6 @@ FF_ENABLE_DEPRECATION_WARNINGS | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     estimate_timings(ic, old_offset); |  | ||||||
| 
 |  | ||||||
|     compute_chapters_end(ic); |     compute_chapters_end(ic); | ||||||
| 
 | 
 | ||||||
|     /* update the stream parameters from the internal codec contexts */ |     /* update the stream parameters from the internal codec contexts */ | ||||||
| @ -2465,6 +2463,8 @@ FF_ENABLE_DEPRECATION_WARNINGS | |||||||
|         st->internal->avctx_inited = 0; |         st->internal->avctx_inited = 0; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     estimate_timings(ic, old_offset); | ||||||
|  | 
 | ||||||
| find_stream_info_err: | find_stream_info_err: | ||||||
|     for (i = 0; i < ic->nb_streams; i++) { |     for (i = 0; i < ic->nb_streams; i++) { | ||||||
|         av_freep(&ic->streams[i]->info); |         av_freep(&ic->streams[i]->info); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user