<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -269,6 +269,11 @@ module RVideo
         #[mp3 @ 0x54340c]flv doesnt support that sample rate, choose from (44100, 22050, 11025)
         #Could not write header for output file #0 (incorrect codec parameters ?)
         
+        # [libmp3lame @ 0x1807600]lame: output buffer too small (buffer index: 9196, free bytes: 596) - Audio encoding failed
+        if m = /lame: output buffer too small.*/.match(result)
+          return true # This is hack to allow encoding when libmp3 complains for no apparent reason
+        end
+        
         raise TranscoderError::UnexpectedResult, details
       end
       </diff>
      <filename>lib/rvideo/tools/ffmpeg.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d5e6c2577f4240d2eb0599147b1f27472ce82d4e</id>
    </parent>
  </parents>
  <author>
    <name>David Rice</name>
    <email>me@davidjrice.co.uk</email>
  </author>
  <url>http://github.com/davidjrice/rvideo/commit/d27063fc5052c1a952c8f2a55c09a2bdf6f69172</url>
  <id>d27063fc5052c1a952c8f2a55c09a2bdf6f69172</id>
  <committed-date>2009-04-23T08:50:55-07:00</committed-date>
  <authored-date>2009-04-23T08:50:55-07:00</authored-date>
  <message>Quick hack to account for libmp3lame complaining about output buffer sizes being too small when in fact encoding was sucessful</message>
  <tree>c38fe6bd8994a6e3e29e3d742f648b9c9ed77bc3</tree>
  <committer>
    <name>David Rice</name>
    <email>me@davidjrice.co.uk</email>
  </committer>
</commit>
