Revision dc296223

View differences:

libavformat/utils.c
1689 1689
    switch(st->codec->codec_type) {
1690 1690
    case CODEC_TYPE_VIDEO:
1691 1691
        ret = avcodec_decode_video(st->codec, &picture,
1692
                                   &got_picture, (uint8_t *)data, size);
1692
                                   &got_picture, data, size);
1693 1693
        break;
1694 1694
    case CODEC_TYPE_AUDIO:
1695 1695
        data_size = FFMAX(size, AVCODEC_MAX_AUDIO_FRAME_SIZE);
......
1697 1697
        if (!samples)
1698 1698
            goto fail;
1699 1699
        ret = avcodec_decode_audio2(st->codec, samples,
1700
                                    &data_size, (uint8_t *)data, size);
1700
                                    &data_size, data, size);
1701 1701
        av_free(samples);
1702 1702
        break;
1703 1703
    default:

Also available in: Unified diff