Skip to content

Commit

Permalink
Fix data_length being cleared on incomplete blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
nkeynes committed Oct 4, 2019
1 parent d07b3d9 commit 77023f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pvr2/yuv.c
Expand Up @@ -149,6 +149,8 @@ void pvr2_yuv_write( unsigned char *data, uint32_t length )
length -= tmp;
if( pvr2_yuv_state.data_length == block_size ) {
pvr2_yuv_process_block( pvr2_yuv_state.data );
} else {
return;
}
}

Expand Down

0 comments on commit 77023f4

Please sign in to comment.