mirror of https://github.com/mpv-player/mpv
encode: deal even more with codec->time_base deprecation.
I assume this works too with Libav 10 and FFmpeg d3e51b41.
This commit is contained in:
parent
843f5f4723
commit
c19ec6f6f6
|
@ -114,12 +114,11 @@ static int init(struct ao *ao)
|
||||||
|
|
||||||
codec = encode_lavc_get_codec(ao->encode_lavc_ctx, ac->stream);
|
codec = encode_lavc_get_codec(ao->encode_lavc_ctx, ac->stream);
|
||||||
|
|
||||||
// ac->stream->time_base.num = 1;
|
// TODO: Remove this redundancy with encode_lavc_alloc_stream also
|
||||||
// ac->stream->time_base.den = ao->samplerate;
|
// setting the time base.
|
||||||
// doing this breaks mpeg2ts in ffmpeg
|
// Using codec->time_bvase is deprecated, but needed for older lavf.
|
||||||
// which doesn't properly force the time base to be 90000
|
ac->stream->time_base.num = 1;
|
||||||
// furthermore, ffmpeg.c doesn't do this either and works
|
ac->stream->time_base.den = ao->samplerate;
|
||||||
|
|
||||||
ac->stream->codec->time_base.num = 1;
|
ac->stream->codec->time_base.num = 1;
|
||||||
ac->stream->codec->time_base.den = ao->samplerate;
|
ac->stream->codec->time_base.den = ao->samplerate;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue