Read asf file header fields in the right order
authorRafaël Carré <rafael.carre@gmail.com>
Tue, 22 Apr 2008 20:08:39 +0000 (20:08 +0000)
committerRobert Swain <robert.swain@gmail.com>
Tue, 22 Apr 2008 20:08:39 +0000 (20:08 +0000)
Patch by Rafaël Carré ( funman videolan org )

Originally committed as revision 12926 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/asf.c

index 3ba7ccc..66b5638 100644 (file)
@@ -186,8 +186,8 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
             asf->hdr.file_size          = get_le64(pb);
             asf->hdr.create_time        = get_le64(pb);
             asf->nb_packets             = get_le64(pb);
-            asf->hdr.send_time          = get_le64(pb);
             asf->hdr.play_time          = get_le64(pb);
+            asf->hdr.send_time          = get_le64(pb);
             asf->hdr.preroll            = get_le32(pb);
             asf->hdr.ignore             = get_le32(pb);
             asf->hdr.flags              = get_le32(pb);