[MPlayer-users] playback corruption + fix

bla blamail blapost at gmail.com
Mon Sep 8 12:50:49 CEST 2008


I came upon this video
http://www.djpnuemo.com/sites/malwaredb/quicktime.wmv

which wouldn't play back at all in stable version, and in svn version this
caused corruption.
I'm not familiar with mplayer at all, and i only glanced at all the text on
bugreporting
and patch submission(a case of tl;dr).

however the included patch works for me on top of svn:

Index: libmpdemux/demux_asf.c
===================================================================
--- libmpdemux/demux_asf.c      (revision 27546)
+++ libmpdemux/demux_asf.c      (working copy)
@@ -499,9 +499,11 @@
                  p++;
                   //printf("  group part: %d bytes\n",len2);
                   if(len2 > len - 1 || len2 < 0) break; // Not enough data
-                  if(len2 == 0) continue;
-                  len2 = FFMIN(len2, asf->packetsize);
-
demux_asf_read_packet(demux,p,len2,streamno,seq,x,duration,-1,keyframe);
+                  if(len2)
+                  {
+                       len2 = FFMIN(len2, asf->packetsize);
+
demux_asf_read_packet(demux,p,len2,streamno,seq,x,duration,-1,keyframe);
+                  }
                   p+=len2;
                  len-=len2+1;
                  ++seq;



More information about the MPlayer-users mailing list