comparison nut.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 ac85aafd0971
children fe24632a577b
comparison
equal deleted inserted replaced
554:e1f17fcfb92c 555:0a997108f384
1371 } 1371 }
1372 } 1372 }
1373 return AV_NOPTS_VALUE; 1373 return AV_NOPTS_VALUE;
1374 } 1374 }
1375 1375
1376 static int nut_read_seek(AVFormatContext *s, int stream_index, int64_t target_ts){ 1376 static int nut_read_seek(AVFormatContext *s, int stream_index, int64_t target_ts, int flags){
1377 // NUTContext *nut = s->priv_data; 1377 // NUTContext *nut = s->priv_data;
1378 int64_t pos; 1378 int64_t pos;
1379 1379
1380 if(av_seek_frame_binary(s, stream_index, target_ts) < 0) 1380 if(av_seek_frame_binary(s, stream_index, target_ts, flags) < 0)
1381 return -1; 1381 return -1;
1382 1382
1383 pos= url_ftell(&s->pb); 1383 pos= url_ftell(&s->pb);
1384 nut_read_timestamp(s, stream_index, &pos, pos-1); 1384 nut_read_timestamp(s, stream_index, &pos, pos-1);
1385 1385