[FFmpeg-cvslog] r11054 - trunk/libavformat/rmdec.c

rtogni subversion
Sun Nov 18 23:58:41 CET 2007


Author: rtogni
Date: Sun Nov 18 23:58:40 2007
New Revision: 11054

Log:
Cleanup: remove ssize


Modified:
   trunk/libavformat/rmdec.c

Modified: trunk/libavformat/rmdec.c
==============================================================================
--- trunk/libavformat/rmdec.c	(original)
+++ trunk/libavformat/rmdec.c	Sun Nov 18 23:58:40 2007
@@ -454,7 +454,6 @@ static int rm_assemble_video_frame(AVFor
     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(AVFor
 
     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;




More information about the ffmpeg-cvslog mailing list