Commit 9f1d760a authored by Reimar Döffinger's avatar Reimar Döffinger

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
parent fa65584f
...@@ -149,7 +149,7 @@ static int decode_frame_byterun1(AVCodecContext *avctx, ...@@ -149,7 +149,7 @@ static int decode_frame_byterun1(AVCodecContext *avctx,
memset(row, 0, avctx->width); memset(row, 0, avctx->width);
for (plane = 0; plane < avctx->bits_per_coded_sample; plane++) { for (plane = 0; plane < avctx->bits_per_coded_sample; plane++) {
for(x = 0; x < planewidth && buf < buf_end; ) { for(x = 0; x < planewidth && buf < buf_end; ) {
char value = *buf++; int8_t value = *buf++;
int length; int length;
if (value >= 0) { if (value >= 0) {
length = value + 1; length = value + 1;
...@@ -166,7 +166,7 @@ static int decode_frame_byterun1(AVCodecContext *avctx, ...@@ -166,7 +166,7 @@ static int decode_frame_byterun1(AVCodecContext *avctx,
} }
} else { } else {
for(x = 0; x < avctx->width && buf < buf_end; ) { for(x = 0; x < avctx->width && buf < buf_end; ) {
char value = *buf++; int8_t value = *buf++;
int length; int length;
if (value >= 0) { if (value >= 0) {
length = value + 1; length = value + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment