Revision 5508d26b

View differences:

ffmpeg.c
1049 1049
            switch(ist->st->codec->codec_type) {
1050 1050
            case CODEC_TYPE_AUDIO:{
1051 1051
                if(pkt)
1052
                    samples= av_fast_realloc(samples, &samples_size, FFMAX(pkt->size, AVCODEC_MAX_AUDIO_FRAME_SIZE));
1052
                    samples= av_fast_realloc(samples, &samples_size, FFMAX(pkt->size*sizeof(*samples), AVCODEC_MAX_AUDIO_FRAME_SIZE));
1053 1053
                data_size= samples_size;
1054 1054
                    /* XXX: could avoid copy if PCM 16 bits with same
1055 1055
                       endianness as CPU */

Also available in: Unified diff