[FFmpeg-devel] [PATCH] alsdec: improve warning message when invalid channel position is found

Thilo Borgmann thilo.borgmann at googlemail.com
Sat Dec 22 22:17:53 CET 2012


Am 22.12.12 18:47, schrieb Michael Niedermayer:
> On Sat, Dec 22, 2012 at 12:05:43PM +0000, Paul B Mahol wrote:
>> diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
>> index 5b13c41..e86177a 100644
>> --- a/libavcodec/alsdec.c
>> +++ b/libavcodec/alsdec.c
>> @@ -358,7 +358,7 @@ static av_cold int read_specific_config(ALSDecContext *ctx)
>>          for (i = 0; i < avctx->channels; i++) {
>>              sconf->chan_pos[i] = get_bits(&gb, chan_pos_bits);
>>              if (sconf->chan_pos[i] >= avctx->channels) {
>> -                av_log(avctx, AV_LOG_WARNING, "Invalid original channel position.\n");
>> +                av_log(avctx, AV_LOG_WARNING, "Invalid channel reordering.\n");
>>                  sconf->chan_sort = 0;
>>                  break;
> 
> LGTM

To me too, please apply!

Thanks,
Thilo



More information about the ffmpeg-devel mailing list