X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Foggparseflac.c;h=a63e9d2e60b3cce056fbead19dd57b147e8cfcd0;hb=ea3a790e0dbc958eadb71132715257ccb4b47a55;hp=d1d53b0256473e9ef13d4f3138550ede2f0494fa;hpb=5509bffa88238d1f445a84a32e3791bfb9e532fd;p=ffmpeg diff --git a/libavformat/oggparseflac.c b/libavformat/oggparseflac.c index d1d53b02564..a63e9d2e60b 100644 --- a/libavformat/oggparseflac.c +++ b/libavformat/oggparseflac.c @@ -63,6 +63,9 @@ flac_header (AVFormatContext * s, int idx) memcpy (st->codec->extradata, os->buf + os->pstart + 5 + 4 + 4 + 4, FLAC_STREAMINFO_SIZE); st->codec->extradata_size = FLAC_STREAMINFO_SIZE; + + st->time_base.num = 1; + st->time_base.den = st->codec->sample_rate; } else if (mdt == 4) { vorbis_comment (s, os->buf + os->pstart + 4, os->psize - 4); }