Revision c8c77d8d libavcodec/binkaudio.c

View differences:

libavcodec/binkaudio.c
272 272
        get_bits_align32(gb);
273 273
    }
274 274

  
275
    *data_size = (uint8_t*)samples - (uint8_t*)data;
276
    if (reported_size != *data_size) {
277
        av_log(avctx, AV_LOG_WARNING, "reported data size (%d) does not match output data size (%d)\n",
278
             reported_size, *data_size);
279
    }
275
    *data_size = FFMIN(reported_size, (uint8_t*)samples - (uint8_t*)data);
280 276
    return buf_size;
281 277
}
282 278

  

Also available in: Unified diff