Commit f68fe314 authored by reimar's avatar reimar

Correctly set packet size for partial video packets in nuv demuxer.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18379 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0fe8b4f8
...@@ -227,6 +227,8 @@ static int nuv_packet(AVFormatContext *s, AVPacket *pkt) { ...@@ -227,6 +227,8 @@ static int nuv_packet(AVFormatContext *s, AVPacket *pkt) {
memcpy(pkt->data, hdr, copyhdrsize); memcpy(pkt->data, hdr, copyhdrsize);
ret = get_buffer(pb, pkt->data + copyhdrsize, size); ret = get_buffer(pb, pkt->data + copyhdrsize, size);
if (ret < 0) return ret; if (ret < 0) return ret;
if (ret < size)
av_shrink_packet(pkt, copyhdrsize + ret);
return 0; return 0;
case NUV_AUDIO: case NUV_AUDIO:
if (ctx->a_id < 0) { if (ctx->a_id < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment