Commit 765ac81f authored by michael's avatar michael

10l set AVPacket.size to the true size of the retunred data instead of

the larger allocated. (prevets segfaults due to latter failures from 900mb
sized packets, yes fuzzed file not a valid one)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16404 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c36aa4d7
......@@ -551,7 +551,7 @@ static int rm_assemble_video_frame(AVFormatContext *s, ByteIOContext *pb,
if(vst->slices != vst->cur_slice) //FIXME find out how to set slices correct from the begin
memmove(pkt->data + 1 + 8*vst->cur_slice, pkt->data + 1 + 8*vst->slices,
vst->videobufpos - 1 - 8*vst->slices);
pkt->size += 8*(vst->cur_slice - vst->slices);
pkt->size = vst->videobufpos + 8*(vst->cur_slice - vst->slices);
pkt->pts = AV_NOPTS_VALUE;
pkt->pos = vst->pktpos;
return 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