Revision b0723c8a

View differences:

libavformat/nuv.c
226 226
                pkt->stream_index = ctx->v_id;
227 227
                memcpy(pkt->data, hdr, copyhdrsize);
228 228
                ret = get_buffer(pb, pkt->data + copyhdrsize, size);
229
                return ret;
229
                if (ret < 0) return ret;
230
                return 0;
230 231
            case NUV_AUDIO:
231 232
                if (ctx->a_id < 0) {
232 233
                    av_log(s, AV_LOG_ERROR, "Audio packet in file without audio stream!\n");
......
238 239
                pkt->pos = pos;
239 240
                pkt->pts = AV_RL32(&hdr[4]);
240 241
                pkt->stream_index = ctx->a_id;
241
                return ret;
242
                if (ret < 0) return ret;
243
                return 0;
242 244
            case NUV_SEEKP:
243 245
                // contains no data, size value is invalid
244 246
                break;

Also available in: Unified diff