[FFmpeg-cvslog] lavc/options: initialize pkt_timebase

Lukasz Marek git at videolan.org
Sun Nov 16 01:13:53 CET 2014


ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Sat Nov 15 20:57:14 2014 +0100| [01974a58df40f183c46b1cf3e37edb020716c8be] | committer: Lukasz Marek

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 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01974a58df40f183c46b1cf3e37edb020716c8be
---

 libavcodec/options.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/options.c b/libavcodec/options.c
index ae5e5d5..5437770 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;



More information about the ffmpeg-cvslog mailing list