Mercurial > libavcodec.hg
comparison ac3enc.c @ 3221:ed485fd3f984 libavcodec
Use a more descriptive error message.
author | banan |
---|---|
date | Sun, 26 Mar 2006 17:07:02 +0000 |
parents | 1475eb5f8649 |
children | 219afc0c4a80 |
comparison
equal
deleted
inserted
replaced
3220:a931984ec6ab | 3221:ed485fd3f984 |
---|---|
737 csnroffst = s->csnroffst; | 737 csnroffst = s->csnroffst; |
738 while (csnroffst >= 0 && | 738 while (csnroffst >= 0 && |
739 bit_alloc(s, bap, encoded_exp, exp_strategy, frame_bits, csnroffst, 0) < 0) | 739 bit_alloc(s, bap, encoded_exp, exp_strategy, frame_bits, csnroffst, 0) < 0) |
740 csnroffst -= SNR_INC1; | 740 csnroffst -= SNR_INC1; |
741 if (csnroffst < 0) { | 741 if (csnroffst < 0) { |
742 av_log(NULL, AV_LOG_ERROR, "Yack, Error !!!\n"); | 742 av_log(NULL, AV_LOG_ERROR, "Bit allocation failed, try increasing the bitrate, -ab 384 for example!\n"); |
743 return -1; | 743 return -1; |
744 } | 744 } |
745 while ((csnroffst + SNR_INC1) <= 63 && | 745 while ((csnroffst + SNR_INC1) <= 63 && |
746 bit_alloc(s, bap1, encoded_exp, exp_strategy, frame_bits, | 746 bit_alloc(s, bap1, encoded_exp, exp_strategy, frame_bits, |
747 csnroffst + SNR_INC1, 0) >= 0) { | 747 csnroffst + SNR_INC1, 0) >= 0) { |