Revision 60583fb6 libavformat/nuv.c

View differences:

libavformat/nuv.c
149 149
    if (v_packs) {
150 150
        ctx->v_id = stream_nr++;
151 151
        vst = av_new_stream(s, ctx->v_id);
152
        if (!vst)
153
            return AVERROR(ENOMEM);
152 154
        vst->codec->codec_type = CODEC_TYPE_VIDEO;
153 155
        vst->codec->codec_id = CODEC_ID_NUV;
154 156
        vst->codec->width = width;
......
163 165
    if (a_packs) {
164 166
        ctx->a_id = stream_nr++;
165 167
        ast = av_new_stream(s, ctx->a_id);
168
        if (!ast)
169
            return AVERROR(ENOMEM);
166 170
        ast->codec->codec_type = CODEC_TYPE_AUDIO;
167 171
        ast->codec->codec_id = CODEC_ID_PCM_S16LE;
168 172
        ast->codec->channels = 2;

Also available in: Unified diff