projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a30277
)
lavc/options: initialize pkt_timebase
author
Lukasz Marek
<lukasz.m.luki2@gmail.com>
Sat, 15 Nov 2014 19:57:14 +0000
(20:57 +0100)
committer
Lukasz Marek
<lukasz.m.luki2@gmail.com>
Sun, 16 Nov 2014 00:13:38 +0000
(
01:13
+0100)
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>
libavcodec/options.c
patch
|
blob
|
history
diff --git
a/libavcodec/options.c
b/libavcodec/options.c
index
ae5e5d5
..
5437770
100644
(file)
--- 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;