shithub: sox

Download patch

ref: c2fdff84a0bcd0c17c745d8e06d99657f8023a01
parent: 1d3a39e1c03d86d83b155218307eebb3811398f9
author: robs <robs>
date: Wed Oct 1 03:51:41 EDT 2008

patch from Alexis Ballier

--- a/src/ffmpeg.c
+++ b/src/ffmpeg.c
@@ -82,7 +82,12 @@
 
   codec = avcodec_find_decoder(enc->codec_id);
   enc->workaround_bugs = 1;
+#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
   enc->error_resilience = 1;
+#else
+  enc->error_recognition = 1;
+#endif
+
   if (!codec || avcodec_open(enc, codec) < 0)
     return -1;
   if (enc->codec_type != CODEC_TYPE_AUDIO) {