git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feb993e
)
Correctly set packet size for partial video packets in nuv demuxer.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 8 Apr 2009 20:20:42 +0000
(20:20 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 8 Apr 2009 20:20:42 +0000
(20:20 +0000)
Originally committed as revision 18379 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/nuv.c
patch
|
blob
|
history
diff --git
a/libavformat/nuv.c
b/libavformat/nuv.c
index
b643229
..
a6e8e01
100644
(file)
--- a/
libavformat/nuv.c
+++ b/
libavformat/nuv.c
@@
-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) {