History

lavc/options: initialize pkt_timebase

It's default in option_table.h is 0, but without this fix it is represented as 0/0.

Lukasz Marek committed 12 years ago

Commit 01974a51 parent 4a302771 file · +1 −0Browse files

Unified · Split

libavcodec/options.c+1−0
@@ -108,6 +108,7 @@ int avcodec_get_context_defaults3(AVCodecContext *s, const AVCodec *codec) · 107 unmodified lines
108 108
109 s->time_base = (AVRational){0,1};109 s->time_base = (AVRational){0,1};
110 s->framerate = (AVRational){ 0, 1 };110 s->framerate = (AVRational){ 0, 1 };
111 s->pkt_timebase = (AVRational){ 0, 1 };
111 s->get_buffer2 = avcodec_default_get_buffer2;112 s->get_buffer2 = avcodec_default_get_buffer2;
112 s->get_format = avcodec_default_get_format;113 s->get_format = avcodec_default_get_format;
113 s->execute = avcodec_default_execute;114 s->execute = avcodec_default_execute;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t