| @@ -1042,6 +1042,7 @@ static int ost_add(Muxer *mux, const OptionsContext *o, enum AVMediaType type, · 1041 unmodified lines |
| 1042 | const AVCodec *enc; | 1042 | const AVCodec *enc; |
| 1043 | AVStream *st; | 1043 | AVStream *st; |
| 1044 | int ret = 0, keep_pix_fmt = 0; | 1044 | int ret = 0, keep_pix_fmt = 0; |
| | 1045 | AVRational enc_tb = { 0, 0 }; |
| 1045 | const char *bsfs = NULL, *time_base = NULL; | 1046 | const char *bsfs = NULL, *time_base = NULL; |
| 1046 | char *filters = NULL, *next, *codec_tag = NULL; | 1047 | char *filters = NULL, *next, *codec_tag = NULL; |
| 1047 | double qscale = -1; | 1048 | double qscale = -1; |
| @@ -1260,7 +1261,7 @@ static int ost_add(Muxer *mux, const OptionsContext *o, enum AVMediaType type, · 212 unmodified lines |
| 1260 | #endif | 1261 | #endif |
| 1261 | } | 1262 | } |
| 1262 | | 1263 | |
| 1263 | ost->enc_timebase = q; | 1264 | enc_tb = q; |
| 1264 | } | 1265 | } |
| 1265 | } else { | 1266 | } else { |
| 1266 | ret = filter_codec_opts(o->g->codec_opts, AV_CODEC_ID_NONE, oc, st, | 1267 | ret = filter_codec_opts(o->g->codec_opts, AV_CODEC_ID_NONE, oc, st, |
| @@ -1377,6 +1378,7 @@ static int ost_add(Muxer *mux, const OptionsContext *o, enum AVMediaType type, · 110 unmodified lines |
| 1377 | (type == AVMEDIA_TYPE_VIDEO || type == AVMEDIA_TYPE_AUDIO)) { | 1378 | (type == AVMEDIA_TYPE_VIDEO || type == AVMEDIA_TYPE_AUDIO)) { |
| 1378 | OutputFilterOptions opts = { | 1379 | OutputFilterOptions opts = { |
| 1379 | .enc = enc, | 1380 | .enc = enc, |
| | 1381 | .output_tb = enc_tb, |
| 1380 | .ts_offset = mux->of.start_time == AV_NOPTS_VALUE ? | 1382 | .ts_offset = mux->of.start_time == AV_NOPTS_VALUE ? |
| 1381 | 0 : mux->of.start_time, | 1383 | 0 : mux->of.start_time, |
| 1382 | .flags = OFILTER_FLAG_DISABLE_CONVERT * !!keep_pix_fmt, | 1384 | .flags = OFILTER_FLAG_DISABLE_CONVERT * !!keep_pix_fmt, |