You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavf: don't set codec timebase in avformat_find_stream_info().
It's not supposed to be set outside of lavc.
This commit is contained in:
@@ -2163,13 +2163,6 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
|||||||
AVDictionary *thread_opt = NULL;
|
AVDictionary *thread_opt = NULL;
|
||||||
st = ic->streams[i];
|
st = ic->streams[i];
|
||||||
|
|
||||||
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO ||
|
|
||||||
st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
|
|
||||||
/* if(!st->time_base.num)
|
|
||||||
st->time_base= */
|
|
||||||
if(!st->codec->time_base.num)
|
|
||||||
st->codec->time_base= st->time_base;
|
|
||||||
}
|
|
||||||
//only for the split stuff
|
//only for the split stuff
|
||||||
if (!st->parser && !(ic->flags & AVFMT_FLAG_NOPARSE)) {
|
if (!st->parser && !(ic->flags & AVFMT_FLAG_NOPARSE)) {
|
||||||
st->parser = av_parser_init(st->codec->codec_id);
|
st->parser = av_parser_init(st->codec->codec_id);
|
||||||
|
Reference in New Issue
Block a user