Browse Source

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

Originally committed as revision 18379 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Reimar Döffinger 16 years ago
parent
commit
9470511185
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/nuv.c

+ 2
- 0
libavformat/nuv.c View File

@@ -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) {


Loading…
Cancel
Save