| 
									
										
										
										
											2024-04-19 10:41:46 +00:00
										 |  |  | commit	95aab0fd83619408995720ce53d7a74790580220 | 
					
						
							|  |  |  | author	liberato@chromium.org <liberato@chromium.org>	Thu Jul 08 02:01:22 2021 | 
					
						
							|  |  |  | committer	liberato@chromium.org <liberato@chromium.org>	Thu Jul 08 02:01:22 2021 | 
					
						
							|  |  |  | tree	ac725b5e2c548c8142aa7096d8184d87d3876a49 | 
					
						
							|  |  |  | parent	e073b7a22e4993e0a7cab80a42a21524e5349f95 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Add av_stream_get_first_dts for Chromium | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ---
 | 
					
						
							|  |  |  |  libavformat/avformat.h |    4 ++++ | 
					
						
							|  |  |  |  libavformat/utils.c    |    7 +++++++ | 
					
						
							|  |  |  |  2 files changed, 11 insertions(+) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-02 10:26:00 +02:00
										 |  |  | Index: ffmpeg-7.1/libavformat/avformat.h
 | 
					
						
							| 
									
										
										
										
											2024-04-19 10:41:46 +00:00
										 |  |  | ===================================================================
 | 
					
						
							| 
									
										
										
										
											2024-10-02 10:26:00 +02:00
										 |  |  | --- ffmpeg-7.1.orig/libavformat/avformat.h
 | 
					
						
							|  |  |  | +++ ffmpeg-7.1/libavformat/avformat.h
 | 
					
						
							|  |  |  | @@ -1202,6 +1202,10 @@ typedef struct AVStreamGroup {
 | 
					
						
							| 
									
										
										
										
											2024-04-19 10:41:46 +00:00
										 |  |  |   | 
					
						
							|  |  |  |  struct AVCodecParserContext *av_stream_get_parser(const AVStream *s); | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  | +// Chromium: We use the internal field first_dts vvv
 | 
					
						
							|  |  |  | +int64_t    av_stream_get_first_dts(const AVStream *st);
 | 
					
						
							|  |  |  | +// Chromium: We use the internal field first_dts ^^^
 | 
					
						
							|  |  |  | +
 | 
					
						
							|  |  |  |  #define AV_PROGRAM_RUNNING 1 | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  |  /** | 
					
						
							| 
									
										
										
										
											2024-10-02 10:26:00 +02:00
										 |  |  | Index: ffmpeg-7.1/libavformat/utils.c
 | 
					
						
							| 
									
										
										
										
											2024-04-19 10:41:46 +00:00
										 |  |  | ===================================================================
 | 
					
						
							| 
									
										
										
										
											2024-10-02 10:26:00 +02:00
										 |  |  | --- ffmpeg-7.1.orig/libavformat/utils.c
 | 
					
						
							|  |  |  | +++ ffmpeg-7.1/libavformat/utils.c
 | 
					
						
							|  |  |  | @@ -44,6 +44,13 @@
 | 
					
						
							|  |  |  |   * various utility functions for use within FFmpeg | 
					
						
							|  |  |  |   */ | 
					
						
							| 
									
										
										
										
											2024-04-19 10:41:46 +00:00
										 |  |  |   | 
					
						
							|  |  |  | +// Chromium: We use the internal field first_dts vvv
 | 
					
						
							|  |  |  | +int64_t av_stream_get_first_dts(const AVStream *st)
 | 
					
						
							|  |  |  | +{
 | 
					
						
							|  |  |  | +  return cffstream(st)->first_dts;
 | 
					
						
							|  |  |  | +}
 | 
					
						
							|  |  |  | +// Chromium: We use the internal field first_dts ^^^
 | 
					
						
							|  |  |  | +
 | 
					
						
							|  |  |  |  /* an arbitrarily chosen "sane" max packet size -- 50M */ | 
					
						
							|  |  |  |  #define SANE_CHUNK_SIZE (50000000) | 
					
						
							|  |  |  |   |