aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-04-19 23:03:51 +0200
committerNicolas George <nicolas.george@normalesup.org>2011-04-19 23:03:51 +0200
commit51c1e255e53bc51b4b3bf071bdaf3e92c4814acc (patch)
tree078a1999d2f83d321fc03d55949144ba5c47ec00
parent46f83e5b3c17a46fa9c86421e7b511cd00cb5d60 (diff)
downloadffmpeg-51c1e255e53bc51b4b3bf071bdaf3e92c4814acc.tar.gz
oggparsecelt: call av_set_pts_info unconditionally.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
-rw-r--r--libavformat/oggparsecelt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/oggparsecelt.c b/libavformat/oggparsecelt.c
index b3c8660c9d..488fa28bed 100644
--- a/libavformat/oggparsecelt.c
+++ b/libavformat/oggparsecelt.c
@@ -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);