Skip to content

Commit

Permalink
bufWidth calc. fixed
Browse files Browse the repository at this point in the history
git-svn-id: http://movist.googlecode.com/svn/trunk@304 9988c26d-9134-0410-b5bb-5778289bb252
  • Loading branch information
cocoable committed Nov 15, 2009
1 parent 7d978ba commit a93624c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions FFVideoTrack.m
Expand Up @@ -155,10 +155,13 @@ - (id)initWithCapacity:(unsigned int)capacity width:(int)width height:(int)heigh
_front = _rear = 0;
_full = FALSE;

int bufWidth = width + 37;
if (bufWidth < 512) {
bufWidth = 512 + 37;
};
int bufWidth = width;
if (isSystemTiger()) {
bufWidth += 37;
if (bufWidth < 512) {
bufWidth = 512 + 37;
}
}
int bufSize = avpicture_get_size(RGB_PIXEL_FORMAT, bufWidth , height);
int i, ret;
for (i = 0; i < _capacity; i++) {
Expand Down

0 comments on commit a93624c

Please sign in to comment.