r16404 - trunk/libavformat/rmdec.c
Author: michael Date: Wed Dec 31 03:47:54 2008 New Revision: 16404 Log: 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) Modified: trunk/libavformat/rmdec.c Modified: trunk/libavformat/rmdec.c ============================================================================== --- trunk/libavformat/rmdec.c Wed Dec 31 02:54:54 2008 (r16403) +++ trunk/libavformat/rmdec.c Wed Dec 31 03:47:54 2008 (r16404) @@ -551,7 +551,7 @@ static int rm_assemble_video_frame(AVFor 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;
participants (1)
-
subversion@mplayerhq.hu