Revision b82744c9

View differences:

tests/seek_test.c
91 91
            st= ic->streams[stream_id];
92 92
            timestamp= av_rescale_q(timestamp, AV_TIME_BASE_Q, st->time_base);
93 93
        }
94
        ret = av_seek_frame(ic, stream_id, timestamp, (i&1)*AVSEEK_FLAG_BACKWARD);
94
        //FIXME fully test the new seek API
95
        if(i&1) ret = avformat_seek_file(ic, stream_id, INT64_MIN, timestamp, timestamp, 0);
96
        else    ret = avformat_seek_file(ic, stream_id, timestamp, timestamp, INT64_MAX, 0);
95 97
        printf("ret:%2d st:%2d ts:%f flags:%d\n", ret, stream_id, timestamp*(stream_id<0 ? 1.0/AV_TIME_BASE : av_q2d(st->time_base)), i&1);
96 98
    }
97 99

  

Also available in: Unified diff