Revision fc8fa007 libavformat/librtmp.c

View differences:

libavformat/librtmp.c
144 144
        return AVERROR(ENOSYS);
145 145

  
146 146
    /* seeks are in milliseconds */
147
    timestamp = av_rescale(timestamp, AV_TIME_BASE, 1000);
147
    if (stream_index < 0)
148
        timestamp = av_rescale_rnd(timestamp, 1000, AV_TIME_BASE,
149
            flags & AVSEEK_FLAG_BACKWARD ? AV_ROUND_DOWN : AV_ROUND_UP);
150

  
148 151
    if (!RTMP_SendSeek(r, timestamp))
149 152
        return -1;
150 153
    return timestamp;

Also available in: Unified diff