You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Export timestamp parameter from H.264.
Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17575 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
				
					committed by
					
						 Carl Eugen Hoyos
						Carl Eugen Hoyos
					
				
			
			
				
	
			
			
			
						parent
						
							27ca0a79c9
						
					
				
				
					commit
					c733922eec
				
			| @@ -123,6 +123,9 @@ static inline int parse_nal_units(AVCodecParserContext *s, | |||||||
|  |  | ||||||
|     h->s.avctx= avctx; |     h->s.avctx= avctx; | ||||||
|     h->sei_recovery_frame_cnt = -1; |     h->sei_recovery_frame_cnt = -1; | ||||||
|  |     h->sei_dpb_output_delay         =  0; | ||||||
|  |     h->sei_cpb_removal_delay        = -1; | ||||||
|  |     h->sei_buffering_period_present =  0; | ||||||
|  |  | ||||||
|     for(;;) { |     for(;;) { | ||||||
|         int src_length, dst_length, consumed; |         int src_length, dst_length, consumed; | ||||||
| @@ -256,6 +259,10 @@ static int h264_parse(AVCodecParserContext *s, | |||||||
|         } |         } | ||||||
|  |  | ||||||
|         parse_nal_units(s, avctx, buf, buf_size); |         parse_nal_units(s, avctx, buf, buf_size); | ||||||
|  |  | ||||||
|  |         s->dts_sync_point    = h->sei_buffering_period_present; | ||||||
|  |         s->dts_ref_dts_delta = h->sei_cpb_removal_delay; | ||||||
|  |         s->pts_dts_delta     = h->sei_dpb_output_delay; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     *poutbuf = buf; |     *poutbuf = buf; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user