|
|
@ -610,7 +610,7 @@ static int get_num(AVIOContext *pb, int *len) |
|
|
|
/* multiple of 20 bytes for ra144 (ugly) */ |
|
|
|
/* multiple of 20 bytes for ra144 (ugly) */ |
|
|
|
#define RAW_PACKET_SIZE 1000 |
|
|
|
#define RAW_PACKET_SIZE 1000 |
|
|
|
|
|
|
|
|
|
|
|
static int sync(AVFormatContext *s, int64_t *timestamp, int *flags, int *stream_index, int64_t *pos){ |
|
|
|
static int rm_sync(AVFormatContext *s, int64_t *timestamp, int *flags, int *stream_index, int64_t *pos){ |
|
|
|
RMDemuxContext *rm = s->priv_data; |
|
|
|
RMDemuxContext *rm = s->priv_data; |
|
|
|
AVIOContext *pb = s->pb; |
|
|
|
AVIOContext *pb = s->pb; |
|
|
|
AVStream *st; |
|
|
|
AVStream *st; |
|
|
@ -964,7 +964,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt) |
|
|
|
flags = (seq++ == 1) ? 2 : 0; |
|
|
|
flags = (seq++ == 1) ? 2 : 0; |
|
|
|
pos = avio_tell(s->pb); |
|
|
|
pos = avio_tell(s->pb); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
len=sync(s, ×tamp, &flags, &i, &pos); |
|
|
|
len = rm_sync(s, ×tamp, &flags, &i, &pos); |
|
|
|
if (len > 0) |
|
|
|
if (len > 0) |
|
|
|
st = s->streams[i]; |
|
|
|
st = s->streams[i]; |
|
|
|
} |
|
|
|
} |
|
|
@ -1035,7 +1035,7 @@ static int64_t rm_read_dts(AVFormatContext *s, int stream_index, |
|
|
|
int seq=1; |
|
|
|
int seq=1; |
|
|
|
AVStream *st; |
|
|
|
AVStream *st; |
|
|
|
|
|
|
|
|
|
|
|
len=sync(s, &dts, &flags, &stream_index2, &pos); |
|
|
|
len = rm_sync(s, &dts, &flags, &stream_index2, &pos); |
|
|
|
if(len<0) |
|
|
|
if(len<0) |
|
|
|
return AV_NOPTS_VALUE; |
|
|
|
return AV_NOPTS_VALUE; |
|
|
|
|
|
|
|
|
|
|
|