comparison matroskadec.c @ 3772:7814581e98ff libavformat

matroskadec: don't try to seek to negative timestamp matroska timestamps are unsigned
author aurel
date Sun, 24 Aug 2008 23:57:29 +0000
parents 9e9dce9660e4
children 2533332ca752
comparison
equal deleted inserted replaced
3771:9e9dce9660e4 3772:7814581e98ff
1640 { 1640 {
1641 MatroskaDemuxContext *matroska = s->priv_data; 1641 MatroskaDemuxContext *matroska = s->priv_data;
1642 AVStream *st = s->streams[stream_index]; 1642 AVStream *st = s->streams[stream_index];
1643 int index; 1643 int index;
1644 1644
1645 if (timestamp < 0)
1646 timestamp = 0;
1647
1645 index = av_index_search_timestamp(st, timestamp, flags); 1648 index = av_index_search_timestamp(st, timestamp, flags);
1646 if (index < 0) 1649 if (index < 0)
1647 return 0; 1650 return 0;
1648 1651
1649 matroska_clear_queue(matroska); 1652 matroska_clear_queue(matroska);