[FFmpeg-cvslog] oggparsecelt: call av_set_pts_info unconditionally.
Nicolas George
git at videolan.org
Tue Apr 19 23:05:24 CEST 2011
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Apr 19 23:03:51 2011 +0200| [51c1e255e53bc51b4b3bf071bdaf3e92c4814acc] | committer: Nicolas George
oggparsecelt: call av_set_pts_info unconditionally.
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=51c1e255e53bc51b4b3bf071bdaf3e92c4814acc
---
libavformat/oggparsecelt.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavformat/oggparsecelt.c b/libavformat/oggparsecelt.c
index b3c8660..488fa28 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);
More information about the ffmpeg-cvslog
mailing list