Use int8_t instead of char, the signedness of char can differ between systems.

Originally committed as revision 21771 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Reimar Döffinger 2010-02-12 18:18:35 +00:00
parent fa65584f12
commit 9f1d760a27
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ static int decode_frame_byterun1(AVCodecContext *avctx,
memset(row, 0, avctx->width);
for (plane = 0; plane < avctx->bits_per_coded_sample; plane++) {
for(x = 0; x < planewidth && buf < buf_end; ) {
char value = *buf++;
int8_t value = *buf++;
int length;
if (value >= 0) {
length = value + 1;
@ -166,7 +166,7 @@ static int decode_frame_byterun1(AVCodecContext *avctx,
}
} else {
for(x = 0; x < avctx->width && buf < buf_end; ) {
char value = *buf++;
int8_t value = *buf++;
int length;
if (value >= 0) {
length = value + 1;