Revision 494e3531

View differences:

libavcodec/alac.c
405 405
    ALACContext *alac = avctx->priv_data;
406 406

  
407 407
    int channels;
408
    int32_t outputsamples;
408
    unsigned int outputsamples;
409 409
    int hassize;
410 410
    int readsamplesize;
411 411
    int wasted_bytes;
......
458 458
    if (hassize) {
459 459
        /* now read the number of samples as a 32bit integer */
460 460
        outputsamples = get_bits(&alac->gb, 32);
461
        if(outputsamples > alac->setinfo_max_samples_per_frame){
462
            av_log(avctx, AV_LOG_ERROR, "outputsamples %d > %d\n", outputsamples, alac->setinfo_max_samples_per_frame);
463
            return -1;
464
        }
461 465
    } else
462 466
        outputsamples = alac->setinfo_max_samples_per_frame;
463 467

  

Also available in: Unified diff