diff options
author | Roberto Togni <r_togni@tiscali.it> | 2007-11-18 22:58:40 +0000 |
---|---|---|
committer | Roberto Togni <r_togni@tiscali.it> | 2007-11-18 22:58:40 +0000 |
commit | 6887cb8bc54d75160f5cb67bb7914e64be3e7c59 (patch) | |
tree | e14a8a76e779749ded7e0fb389ac2cd7a82557aa /libavformat | |
parent | 52537534d20c675d3c53cdad160dd3462fbfef30 (diff) | |
download | ffmpeg-6887cb8bc54d75160f5cb67bb7914e64be3e7c59.tar.gz |
Cleanup: remove ssize
Originally committed as revision 11054 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rmdec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 4fef4cd8ec..5c36aa55d6 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -454,7 +454,6 @@ static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket * ByteIOContext *pb = &s->pb; int hdr, seq, pic_num, len2, pos; int type; - int ssize; hdr = get_byte(pb); len--; type = hdr >> 6; @@ -494,10 +493,9 @@ static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket * if((seq & 0x7F) == 1 || rm->curpic_num != pic_num){ rm->slices = ((hdr & 0x3F) << 1) + 1; - ssize = len2 + 8*rm->slices + 1; - if(!(rm->videobuf = av_realloc(rm->videobuf, ssize))) + rm->videobufsize = len2 + 8*rm->slices + 1; + if(!(rm->videobuf = av_realloc(rm->videobuf, rm->videobufsize))) return AVERROR(ENOMEM); - rm->videobufsize = ssize; rm->videobufpos = 8*rm->slices + 1; rm->cur_slice = 0; rm->curpic_num = pic_num; |