# HG changeset patch # User reimar # Date 1239222042 0 # Node ID bab1f7903289278cfa97c4547ba62922946983b3 # Parent 78eb7d728be4e8d2a7a75a6094e4cdb55c91b0ab Correctly set packet size for partial video packets in nuv demuxer. diff -r 78eb7d728be4 -r bab1f7903289 nuv.c --- a/nuv.c Wed Apr 08 20:19:12 2009 +0000 +++ b/nuv.c Wed Apr 08 20:20:42 2009 +0000 @@ -227,6 +227,8 @@ memcpy(pkt->data, hdr, copyhdrsize); ret = get_buffer(pb, pkt->data + copyhdrsize, size); if (ret < 0) return ret; + if (ret < size) + av_shrink_packet(pkt, copyhdrsize + ret); return 0; case NUV_AUDIO: if (ctx->a_id < 0) {