Mercurial > libavformat.hg
changeset 2754:2a34ebe41c27 libavformat
1000l: Fix check for max slice number
author | rtogni |
---|---|
date | Thu, 15 Nov 2007 21:13:36 +0000 |
parents | b55dad23bfcb |
children | bb9c77d499dd |
files | rmdec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rmdec.c Thu Nov 15 21:04:06 2007 +0000 +++ b/rmdec.c Thu Nov 15 21:13:36 2007 +0000 @@ -507,7 +507,7 @@ pos = len2 - pos; } - if(++rm->cur_slice > rm->cur_slice) + if(++rm->cur_slice > rm->slices) return 1; AV_WL32(rm->videobuf - 7 + 8*rm->cur_slice, 1); AV_WL32(rm->videobuf - 3 + 8*rm->cur_slice, rm->videobufpos - 8*rm->slices - 1);