oggparsecelt: call av_set_pts_info unconditionally.
authorNicolas George <nicolas.george@normalesup.org>
Tue, 19 Apr 2011 21:03:51 +0000 (23:03 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Tue, 19 Apr 2011 21:03:51 +0000 (23:03 +0200)
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
libavformat/oggparsecelt.c

index b3c8660..488fa28 100644 (file)
@@ -71,8 +71,7 @@ static int celt_header(AVFormatContext *s, int idx)
         st->codec->sample_fmt     = AV_SAMPLE_FMT_S16;
         st->codec->extradata      = extradata;
         st->codec->extradata_size = 2 * sizeof(uint32_t);
-        if (sample_rate)
-            av_set_pts_info(st, 64, 1, sample_rate);
+        av_set_pts_info(st, 64, 1, sample_rate);
         priv->extra_headers_left  = 1 + extra_headers;
         os->private = priv;
         AV_WL32(extradata + 0, overlap);