Revision c5c20ae4 libavcodec/wmaprodec.c

View differences:

libavcodec/wmaprodec.c
343 343
        }
344 344
    }
345 345

  
346
    if (s->num_channels < 0 || s->num_channels > WMAPRO_MAX_CHANNELS) {
347
        av_log_ask_for_sample(avctx, "invalid number of channels\n");
348
        return AVERROR_NOTSUPP;
346
    if (s->num_channels < 0) {
347
        av_log(avctx, AV_LOG_ERROR, "invalid number of channels %d\n", s->num_channels);
348
        return AVERROR_INVALIDDATA;
349
    } else if (s->num_channels > WMAPRO_MAX_CHANNELS) {
350
        av_log_ask_for_sample(avctx, "unsupported number of channels\n");
351
        return AVERROR_PATCHWELCOME;
349 352
    }
350 353

  
351 354
    INIT_VLC_STATIC(&sf_vlc, SCALEVLCBITS, HUFF_SCALE_SIZE,

Also available in: Unified diff