Revision 94705111

View differences:

libavformat/nuv.c
227 227
                memcpy(pkt->data, hdr, copyhdrsize);
228 228
                ret = get_buffer(pb, pkt->data + copyhdrsize, size);
229 229
                if (ret < 0) return ret;
230
                if (ret < size)
231
                    av_shrink_packet(pkt, copyhdrsize + ret);
230 232
                return 0;
231 233
            case NUV_AUDIO:
232 234
                if (ctx->a_id < 0) {

Also available in: Unified diff