comparison mpegts.c @ 555:0a997108f384 libavformat

use native timebase for seeking direction flag for seeking
author michael
date Sun, 10 Oct 2004 22:05:43 +0000
parents 112057e05179
children 29a19aec26b2
comparison
equal deleted inserted replaced
554:e1f17fcfb92c 555:0a997108f384
1329 *ppos = pos; 1329 *ppos = pos;
1330 1330
1331 return timestamp; 1331 return timestamp;
1332 } 1332 }
1333 1333
1334 static int read_seek(AVFormatContext *s, int stream_index, int64_t target_ts){ 1334 static int read_seek(AVFormatContext *s, int stream_index, int64_t target_ts, int flags){
1335 MpegTSContext *ts = s->priv_data; 1335 MpegTSContext *ts = s->priv_data;
1336 uint8_t buf[TS_PACKET_SIZE]; 1336 uint8_t buf[TS_PACKET_SIZE];
1337 int64_t pos; 1337 int64_t pos;
1338 1338
1339 if(av_seek_frame_binary(s, stream_index, target_ts) < 0) 1339 if(av_seek_frame_binary(s, stream_index, target_ts, flags) < 0)
1340 return -1; 1340 return -1;
1341 1341
1342 pos= url_ftell(&s->pb); 1342 pos= url_ftell(&s->pb);
1343 1343
1344 for(;;) { 1344 for(;;) {