summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
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/utils.c
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/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 5afa3e7e97..abb5674e7f 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -726,6 +726,8 @@ MAKE_ACCESSORS(AVFrame, frame, int64_t, pkt_pos)
MAKE_ACCESSORS(AVFrame, frame, int64_t, channel_layout)
MAKE_ACCESSORS(AVFrame, frame, int, sample_rate)
+MAKE_ACCESSORS(AVCodecContext, codec, AVRational, pkt_timebase)
+
static void avcodec_get_subtitle_defaults(AVSubtitle *sub)
{
memset(sub, 0, sizeof(*sub));