[FFmpeg-trac] #183(avformat:new): ASF/WMV partial packet change causes infinite loop

FFmpeg trac at avcodec.org
Tue May 10 00:17:51 CEST 2011

#183: ASF/WMV partial packet change causes infinite loop
 Reporter:  tracey_pooh  |        Type:  defect
   Status:  new          |    Priority:  normal
Component:  avformat     |     Version:  git
 Keywords:  ASF demuxer  |  Blocked By:
 Blocking:               |  Reproduced:  0
 Analyzed:  0            |
 hi all,

 I'm new to posting bugs with FFmpeg, but have been using ffmpeg heavily
 for years, even customizing and patching it.  At some point, I'd like to
 try to work with folks to see about adding some patches.

 OK, back to the "bug" -- granted this is a likely *heavily* poorly (and
 cutoff) video, but it's representative at times of the random stuff we get
 in our 500,000+ videos are Internet Archive / archive.org 8-)

 The patch here:


 causes ffmpeg to spin and write (seemingly) without end -- I have to kill

 A one-line "revert" for part of that patch will make it stop spinning and
 just kind of cut off the audio like it used to,
 but it'd be nice if the original diff provider / moderator to the longer
 change (above) could take a look and see what
 they think might be best:

        if (ret != asf->packet_frag_size) {
           av_log(s, AV_LOG_ERROR, "xxxx scrambled\n"); return ret >= 0 ?

 (that is, inserting that one line "fixes my problem" but likely the
 greater patch had other intentions to it).

 Example: run
 ffmpeg   -i holymatrimony.wmv  -vn    audio.wav

Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/183>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list