diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-12 22:17:10 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-13 20:35:08 +0200 |
commit | 0eb0b310c4409658e3e31c72ea093613f3364f01 (patch) | |
tree | 8c9de57b65d509c4818383f506fc78fa685b71a5 /libavcodec/avcodec.h | |
parent | cb59e62abbf0d7a04fecb04ff7dd3463fa73b8ce (diff) | |
download | ffmpeg-0eb0b310c4409658e3e31c72ea093613f3364f01.tar.gz |
lavc: add pkt_timebase to allow avcodec to adjust pkt_dts/pts when needed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 17951b5e4a..045ab8b4b4 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2947,6 +2947,15 @@ typedef struct AVCodecContext { uint64_t vbv_delay; /** + * Timebase in which pkt_dts/pts and AVPacket.dts/pts are. + * Code outside libavcodec should access this field using: + * avcodec_set_pkt_timebase(avctx) + * - encoding unused. + * - decodimg set by user + */ + AVRational pkt_timebase; + + /** * Current statistics for PTS correction. * - decoding: maintained and used by libavcodec, not intended to be used by user apps * - encoding: unused @@ -2957,6 +2966,9 @@ typedef struct AVCodecContext { int64_t pts_correction_last_dts; /// DTS of the last frame } AVCodecContext; +AVRational av_codec_get_pkt_timebase (const AVCodecContext *avctx); +void av_codec_set_pkt_timebase (AVCodecContext *avctx, AVRational val); + /** * AVProfile. */ |