diff options
author | Måns Rullgård <mans@mansr.com> | 2006-05-12 00:50:43 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2006-05-12 00:50:43 +0000 |
commit | 3644cb8ff9e8603859e74ebf2d0ed6eff5bef551 (patch) | |
tree | 0097e3306d2b805c44772cb8a982a7ada2dfe882 /libavformat/ogg2.c | |
parent | b8d10977f435ef7de6a90c8545a419192b8e83c6 (diff) | |
download | ffmpeg-3644cb8ff9e8603859e74ebf2d0ed6eff5bef551.tar.gz |
set stream time_base properly
Originally committed as revision 5367 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ogg2.c')
-rw-r--r-- | libavformat/ogg2.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavformat/ogg2.c b/libavformat/ogg2.c index 7daf560641..71b4d69a97 100644 --- a/libavformat/ogg2.c +++ b/libavformat/ogg2.c @@ -432,15 +432,11 @@ ogg_gptopts (AVFormatContext * s, int i, uint64_t gp) { ogg_t *ogg = s->priv_data; ogg_stream_t *os = ogg->streams + i; - AVStream *st = s->streams[i]; - AVCodecContext *codec = st->codec; uint64_t pts = AV_NOPTS_VALUE; if(os->codec->gptopts){ pts = os->codec->gptopts(s, i, gp); - } else if (codec->codec_type == CODEC_TYPE_AUDIO){ - pts = gp * 1000000LL / codec->sample_rate; - }else if (codec->codec_type == CODEC_TYPE_VIDEO){ + } else { pts = gp; } |