comparison avformat.h @ 2020:d0d39f124c6b libavformat

timestamps generation improvement when parsing avi patch by Joakim \ elupus chez ecce dot se / original thread: date: 03/19/2007 01:47 AM subject: [Ffmpeg-devel] [RFC] Improvement for the odd timestamp generation when parser is in use.
author benoit
date Fri, 13 Apr 2007 07:50:04 +0000
parents 1a3c9056982a
children a3e79d6e4e3c
comparison
equal deleted inserted replaced
2019:e046ab4f6571 2020:d0d39f124c6b
23 23
24 #ifdef __cplusplus 24 #ifdef __cplusplus
25 extern "C" { 25 extern "C" {
26 #endif 26 #endif
27 27
28 #define LIBAVFORMAT_VERSION_INT ((51<<16)+(12<<8)+0) 28 #define LIBAVFORMAT_VERSION_INT ((51<<16)+(12<<8)+1)
29 #define LIBAVFORMAT_VERSION 51.12.0 29 #define LIBAVFORMAT_VERSION 51.12.1
30 #define LIBAVFORMAT_BUILD LIBAVFORMAT_VERSION_INT 30 #define LIBAVFORMAT_BUILD LIBAVFORMAT_VERSION_INT
31 31
32 #define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION) 32 #define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
33 33
34 #include <time.h> 34 #include <time.h>
307 int64_t duration; 307 int64_t duration;
308 308
309 char language[4]; /** ISO 639 3-letter language code (empty string if undefined) */ 309 char language[4]; /** ISO 639 3-letter language code (empty string if undefined) */
310 310
311 /* av_read_frame() support */ 311 /* av_read_frame() support */
312 int need_parsing; ///< 1->full parsing needed, 2->only parse headers dont repack 312 #define AVSTREAM_PARSE_TIMESTAMPS 3 /**< full parsing and interpolation of timestamps for frames not starting on packet boundary */
313 int need_parsing; ///< 1->full parsing needed, 2->only parse headers dont repack, 3->full parsing and interpolate timestamps
313 struct AVCodecParserContext *parser; 314 struct AVCodecParserContext *parser;
314 315
315 int64_t cur_dts; 316 int64_t cur_dts;
316 int last_IP_duration; 317 int last_IP_duration;
317 int64_t last_IP_pts; 318 int64_t last_IP_pts;