summaryrefslogtreecommitdiff
path: root/libavcodec/options.c
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki2@gmail.com>2014-11-15 20:57:14 +0100
committerLukasz Marek <lukasz.m.luki2@gmail.com>2014-11-16 01:13:38 +0100
commit01974a58df40f183c46b1cf3e37edb020716c8be (patch)
treeb9a58d0e86511ea0fc9fb16d7165cf1fb11966fe /libavcodec/options.c
parent4a30277a59ef1fafa391682a3fe06b49a99d98b7 (diff)
downloadffmpeg-01974a58df40f183c46b1cf3e37edb020716c8be.tar.gz
lavc/options: initialize pkt_timebase
It's default in option_table.h is 0, but without this fix it is represented as 0/0. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r--libavcodec/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c
index ae5e5d560b..5437770553 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -108,6 +108,7 @@ int avcodec_get_context_defaults3(AVCodecContext *s, const AVCodec *codec)
s->time_base = (AVRational){0,1};
s->framerate = (AVRational){ 0, 1 };
+ s->pkt_timebase = (AVRational){ 0, 1 };
s->get_buffer2 = avcodec_default_get_buffer2;
s->get_format = avcodec_default_get_format;
s->execute = avcodec_default_execute;