提交 94705111 编写于 作者: R Reimar Döffinger

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

Originally committed as revision 18379 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 feb993e5
......@@ -227,6 +227,8 @@ static int nuv_packet(AVFormatContext *s, AVPacket *pkt) {
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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册