Mercurial > libavformat.hg
changeset 4839:bab1f7903289 libavformat
Correctly set packet size for partial video packets in nuv demuxer.
author | reimar |
---|---|
date | Wed, 08 Apr 2009 20:20:42 +0000 |
parents | 78eb7d728be4 |
children | d99a060db4a4 |
files | nuv.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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) {