[FFmpeg-cvslog] r21761 - trunk/libavformat/iv8.c
michael
subversion
Thu Feb 11 23:32:46 CET 2010
Author: michael
Date: Thu Feb 11 23:32:46 2010
New Revision: 21761
Log:
Fix timestamps.
Modified:
trunk/libavformat/iv8.c
Modified: trunk/libavformat/iv8.c
==============================================================================
--- trunk/libavformat/iv8.c Thu Feb 11 22:54:09 2010 (r21760)
+++ trunk/libavformat/iv8.c Thu Feb 11 23:32:46 2010 (r21761)
@@ -55,9 +55,9 @@ static int read_header(AVFormatContext *
static int read_packet(AVFormatContext *s, AVPacket *pkt)
{
- int ret, size, pts;
-
- get_be16(s->pb); // 257
+ int ret, size, pts, type;
+retry:
+ type= get_be16(s->pb); // 257 or 258
size= get_be16(s->pb);
get_be16(s->pb); //some flags, 0x80 indicates end of frame
@@ -69,9 +69,14 @@ static int read_packet(AVFormatContext *
if(size<1)
return -1;
+ if(type==258){
+ url_fskip(s->pb, size);
+ goto retry;
+ }
+
ret= av_get_packet(s->pb, pkt, size);
- pkt->pts= pkt->dts= pts;
+ pkt->pts= pts;
pkt->pos-=16;
pkt->stream_index = 0;
More information about the ffmpeg-cvslog
mailing list