Revision 51c1e255 libavformat/oggparsecelt.c

View differences:

libavformat/oggparsecelt.c
71 71
        st->codec->sample_fmt     = AV_SAMPLE_FMT_S16;
72 72
        st->codec->extradata      = extradata;
73 73
        st->codec->extradata_size = 2 * sizeof(uint32_t);
74
        if (sample_rate)
75
            av_set_pts_info(st, 64, 1, sample_rate);
74
        av_set_pts_info(st, 64, 1, sample_rate);
76 75
        priv->extra_headers_left  = 1 + extra_headers;
77 76
        os->private = priv;
78 77
        AV_WL32(extradata + 0, overlap);

Also available in: Unified diff