Mercurial > libavformat.hg
diff ogg2.c @ 1077:91677ac6fb19 libavformat
set stream time_base properly
author | mru |
---|---|
date | Fri, 12 May 2006 00:50:43 +0000 |
parents | a1c07ce3943c |
children | 2a31a69400f3 |
line wrap: on
line diff
--- a/ogg2.c Thu May 11 23:07:22 2006 +0000 +++ b/ogg2.c Fri May 12 00:50:43 2006 +0000 @@ -432,15 +432,11 @@ { 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; }