Memory leak and broken audio in mjpegtools

Bug #46779 reported by Klaus Stengel on 2006-05-26
Affects Status Importance Assigned to Milestone
mjpegtools (Ubuntu)

Bug Description

Binary package hint: mjpegtools

The tools in mjpegtools package leak memory and may produce corrupt audio tracks when saving as quicktime (.mov) files with different settings than 16bit/stereo.

For example, recording a sequence longer than 1 hour with the following command is impossible due to this problem:
# lavrec -i p -d 1 -q 40 -B -r 44100 -s -c 2 -l 80 -U -v 1

lavrec eventually runs out of memory and crashes with segmentation faults or things like "**ERROR: [lavrec] Error reading audio: Audio task died. Reason: Error Audio
ring buffer overflow"

The problem is located in lavtools/lav_io.c, where the free() call for the audio buffer is in the wrong place and different audio settings aren't handled properly.

Related branches

This patch I created should fix this. I'm not sure if there any issues with endianess left, on i386 it works for me.

Barry deFreese (bddebian) wrote :

Uploaded to Gutsy. Thanks for the patch!

Changed in mjpegtools:
status: New → Fix Committed
Barry deFreese (bddebian) wrote :

mjpegtools (1:1.8.0-0.2ubuntu5) gutsy; urgency=low

  * Add patch for lav_io memleak (11_mem_leak.dpatch). (LP: #46779)
    * Thanks to Klaus Stengel for the patch

 -- Barry deFreese <email address hidden> Sat, 29 Sep 2007 00:30:48 -0400

Changed in mjpegtools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers