Revision ca402f32 libavformat/xwma.c

View differences:

libavformat/xwma.c
40 40
static int xwma_read_header(AVFormatContext *s, AVFormatParameters *ap)
41 41
{
42 42
    int64_t size, av_uninit(data_size);
43
    int ret;
43 44
    uint32_t dpds_table_size = 0;
44 45
    uint32_t *dpds_table = 0;
45 46
    unsigned int tag;
......
70 71
    if (!st)
71 72
        return AVERROR(ENOMEM);
72 73

  
73
    ff_get_wav_header(pb, st->codec, size);
74
    ret = ff_get_wav_header(pb, st->codec, size);
75
    if (ret < 0)
76
        return ret;
74 77
    st->need_parsing = AVSTREAM_PARSE_NONE;
75 78

  
76 79
    /* All xWMA files I have seen contained WMAv2 data. If there are files

Also available in: Unified diff