Revision ca402f32 libavformat/avidec.c

View differences:

libavformat/avidec.c
345 345
    int avih_width=0, avih_height=0;
346 346
    int amv_file_format=0;
347 347
    uint64_t list_end = 0;
348
    int ret;
348 349

  
349 350
    avi->stream_index= -1;
350 351

  
......
623 624
//                    avio_skip(pb, size - 5 * 4);
624 625
                    break;
625 626
                case AVMEDIA_TYPE_AUDIO:
626
                    ff_get_wav_header(pb, st->codec, size);
627
                    ret = ff_get_wav_header(pb, st->codec, size);
628
                    if (ret < 0)
629
                        return ret;
627 630
                    ast->dshow_block_align= st->codec->block_align;
628 631
                    if(ast->sample_size && st->codec->block_align && ast->sample_size != st->codec->block_align){
629 632
                        av_log(s, AV_LOG_WARNING, "sample size (%d) != block align (%d)\n", ast->sample_size, st->codec->block_align);

Also available in: Unified diff