[SCM] libav/experimental: Use a more descriptive error message.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:47:13 UTC 2013


The following commit has been merged in the experimental branch:
commit 5b6638517f61a802359bc6d8c2605a2277c73810
Author: Benjamin Larsson <banan at ludd.ltu.se>
Date:   Sun Mar 26 17:07:02 2006 +0000

    Use a more descriptive error message.
    
    Originally committed as revision 5224 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index 5084394..39e0777 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -739,7 +739,7 @@ static int compute_bit_allocation(AC3EncodeContext *s,
            bit_alloc(s, bap, encoded_exp, exp_strategy, frame_bits, csnroffst, 0) < 0)
         csnroffst -= SNR_INC1;
     if (csnroffst < 0) {
-        av_log(NULL, AV_LOG_ERROR, "Yack, Error !!!\n");
+        av_log(NULL, AV_LOG_ERROR, "Bit allocation failed, try increasing the bitrate, -ab 384 for example!\n");
         return -1;
     }
     while ((csnroffst + SNR_INC1) <= 63 &&

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list