It's default in option_table.h is 0, but without this fix it is represented as 0/0.
Unified · Split
| @@ -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; |