[FFmpeg-cvslog] r18379 - trunk/libavformat/nuv.c
reimar
subversion
Wed Apr 8 22:20:42 CEST 2009
Author: reimar
Date: Wed Apr 8 22:20:42 2009
New Revision: 18379
Log:
Correctly set packet size for partial video packets in nuv demuxer.
Modified:
trunk/libavformat/nuv.c
Modified: trunk/libavformat/nuv.c
==============================================================================
--- trunk/libavformat/nuv.c Wed Apr 8 22:19:12 2009 (r18378)
+++ trunk/libavformat/nuv.c Wed Apr 8 22:20:42 2009 (r18379)
@@ -227,6 +227,8 @@ static int nuv_packet(AVFormatContext *s
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) {
More information about the ffmpeg-cvslog
mailing list