Mercurial > libavformat.hg
comparison avformat.h @ 4569:0000335f1eba libavformat
Add timestamp computation if values are exported by decoder.
Patch by Ivan Schreter, schreter gmx net
author | cehoyos |
---|---|
date | Tue, 24 Feb 2009 22:19:09 +0000 |
parents | 963e3b76c7a6 |
children | b42c89b5b998 |
comparison
equal
deleted
inserted
replaced
4568:9b00d2a02fa1 | 4569:0000335f1eba |
---|---|
20 | 20 |
21 #ifndef AVFORMAT_AVFORMAT_H | 21 #ifndef AVFORMAT_AVFORMAT_H |
22 #define AVFORMAT_AVFORMAT_H | 22 #define AVFORMAT_AVFORMAT_H |
23 | 23 |
24 #define LIBAVFORMAT_VERSION_MAJOR 52 | 24 #define LIBAVFORMAT_VERSION_MAJOR 52 |
25 #define LIBAVFORMAT_VERSION_MINOR 29 | 25 #define LIBAVFORMAT_VERSION_MINOR 30 |
26 #define LIBAVFORMAT_VERSION_MICRO 2 | 26 #define LIBAVFORMAT_VERSION_MICRO 0 |
27 | 27 |
28 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ | 28 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ |
29 LIBAVFORMAT_VERSION_MINOR, \ | 29 LIBAVFORMAT_VERSION_MINOR, \ |
30 LIBAVFORMAT_VERSION_MICRO) | 30 LIBAVFORMAT_VERSION_MICRO) |
31 #define LIBAVFORMAT_VERSION AV_VERSION(LIBAVFORMAT_VERSION_MAJOR, \ | 31 #define LIBAVFORMAT_VERSION AV_VERSION(LIBAVFORMAT_VERSION_MAJOR, \ |
492 | 492 |
493 /* av_read_frame() support */ | 493 /* av_read_frame() support */ |
494 const uint8_t *cur_ptr; | 494 const uint8_t *cur_ptr; |
495 int cur_len; | 495 int cur_len; |
496 AVPacket cur_pkt; | 496 AVPacket cur_pkt; |
497 | |
498 // Timestamp generation support: | |
499 /** | |
500 * Timestamp corresponding to the last dts sync point. | |
501 * | |
502 * Initialized when AVCodecParserContext.dts_sync_point >= 0 and | |
503 * a DTS is received from the underlying container. Otherwise set to | |
504 * AV_NOPTS_VALUE by default. | |
505 */ | |
506 int64_t reference_dts; | |
497 } AVStream; | 507 } AVStream; |
498 | 508 |
499 #define AV_PROGRAM_RUNNING 1 | 509 #define AV_PROGRAM_RUNNING 1 |
500 | 510 |
501 /** | 511 /** |