Minor resync optimization
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 2 Aug 2006 09:59:10 +0000 (09:59 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 2 Aug 2006 09:59:10 +0000 (09:59 +0000)
Originally committed as revision 5888 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/gxf.c

index d247e2f..26c3fc1 100644 (file)
@@ -401,7 +401,7 @@ static int64_t gxf_resync_media(AVFormatContext *s, uint64_t max_interval, int t
     int len;
     ByteIOContext *pb = &s->pb;
     pkt_type_t type;
-    tmp = 0xff;
+    tmp = get_be32(pb);
 start:
     while (tmp)
         READ_ONE();