diff options
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; } |