summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-11-28 09:31:48 +0100
committerAnton Khirnov <anton@khirnov.net>2012-02-26 07:51:12 +0100
commitd3783f47eeed364aae9c916d1d659bf5f31c5ea0 (patch)
tree848918a6f0044220b79d21ba5538534fd86471a3 /libavformat
parent832ba44d8d91d5c5ad47843085f810bde74a2e6d (diff)
lavf: don't set codec timebase in avformat_find_stream_info().
It's not supposed to be set outside of lavc.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 0515c45ce1..11fd3891bc 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2163,13 +2163,6 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
AVDictionary *thread_opt = NULL;
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
if (!st->parser && !(ic->flags & AVFMT_FLAG_NOPARSE)) {
st->parser = av_parser_init(st->codec->codec_id);