Commit 6887cb8b authored by Roberto Togni's avatar Roberto Togni

Cleanup: remove ssize

Originally committed as revision 11054 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 52537534
...@@ -454,7 +454,6 @@ static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket * ...@@ -454,7 +454,6 @@ static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket *
ByteIOContext *pb = &s->pb; ByteIOContext *pb = &s->pb;
int hdr, seq, pic_num, len2, pos; int hdr, seq, pic_num, len2, pos;
int type; int type;
int ssize;
hdr = get_byte(pb); len--; hdr = get_byte(pb); len--;
type = hdr >> 6; type = hdr >> 6;
...@@ -494,10 +493,9 @@ static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket * ...@@ -494,10 +493,9 @@ static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket *
if((seq & 0x7F) == 1 || rm->curpic_num != pic_num){ if((seq & 0x7F) == 1 || rm->curpic_num != pic_num){
rm->slices = ((hdr & 0x3F) << 1) + 1; rm->slices = ((hdr & 0x3F) << 1) + 1;
ssize = len2 + 8*rm->slices + 1; rm->videobufsize = len2 + 8*rm->slices + 1;
if(!(rm->videobuf = av_realloc(rm->videobuf, ssize))) if(!(rm->videobuf = av_realloc(rm->videobuf, rm->videobufsize)))
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
rm->videobufsize = ssize;
rm->videobufpos = 8*rm->slices + 1; rm->videobufpos = 8*rm->slices + 1;
rm->cur_slice = 0; rm->cur_slice = 0;
rm->curpic_num = pic_num; rm->curpic_num = pic_num;
......
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