aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-12 22:17:10 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-13 20:35:08 +0200
commit0eb0b310c4409658e3e31c72ea093613f3364f01 (patch)
tree8c9de57b65d509c4818383f506fc78fa685b71a5 /libavcodec/avcodec.h
parentcb59e62abbf0d7a04fecb04ff7dd3463fa73b8ce (diff)
downloadffmpeg-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.h12
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.
*/