Mercurial > libavformat.hg
changeset 2764:7c3bad260c6a libavformat
Cleanup: remove ssize
author | rtogni |
---|---|
date | Sun, 18 Nov 2007 22:58:40 +0000 |
parents | 22a672e45704 |
children | 7f8b30acb7c7 |
files | rmdec.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/rmdec.c Sun Nov 18 22:49:41 2007 +0000 +++ b/rmdec.c Sun Nov 18 22:58:40 2007 +0000 @@ -454,7 +454,6 @@ 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 @@ 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;