Commit 4678b43f authored by michael's avatar michael

Fix timestamps.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21761 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 00ca54e7
...@@ -55,9 +55,9 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -55,9 +55,9 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
static int read_packet(AVFormatContext *s, AVPacket *pkt) static int read_packet(AVFormatContext *s, AVPacket *pkt)
{ {
int ret, size, pts; int ret, size, pts, type;
retry:
get_be16(s->pb); // 257 type= get_be16(s->pb); // 257 or 258
size= get_be16(s->pb); size= get_be16(s->pb);
get_be16(s->pb); //some flags, 0x80 indicates end of frame get_be16(s->pb); //some flags, 0x80 indicates end of frame
...@@ -69,9 +69,14 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -69,9 +69,14 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
if(size<1) if(size<1)
return -1; return -1;
if(type==258){
url_fskip(s->pb, size);
goto retry;
}
ret= av_get_packet(s->pb, pkt, size); ret= av_get_packet(s->pb, pkt, size);
pkt->pts= pkt->dts= pts; pkt->pts= pts;
pkt->pos-=16; pkt->pos-=16;
pkt->stream_index = 0; pkt->stream_index = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment