Revision a2018b51 libavformat/lxfdec.c

View differences:

libavformat/lxfdec.c
218 218
        return ret < 0 ? ret : AVERROR_EOF;
219 219

  
220 220
    if (!(st = av_new_stream(s, 0)))
221
        return AVERROR_NOMEM;
221
        return AVERROR(ENOMEM);
222 222

  
223 223
    st->duration          = AV_RL32(&header_data[32]);
224 224
    video_params          = AV_RL32(&header_data[40]);
......
244 244

  
245 245
    if ((lxf->channels = (disk_params >> 2) & 0xF)) {
246 246
        if (!(st = av_new_stream(s, 1)))
247
            return AVERROR_NOMEM;
247
            return AVERROR(ENOMEM);
248 248

  
249 249
        st->codec->codec_type  = AVMEDIA_TYPE_AUDIO;
250 250
        st->codec->sample_rate = LXF_SAMPLERATE;

Also available in: Unified diff