summaryrefslogtreecommitdiff
path: root/libavcodec/mjpeg.c
diff options
context:
space:
mode:
authorbubu <bubu@bubu.net>2003-01-01 15:10:45 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-01-01 15:10:45 +0000
commitccfddafbd9a775b05faeaf2f5a5ed182951419aa (patch)
tree787d7625d6b2f861a7512583effd4afc8fff3775 /libavcodec/mjpeg.c
parent7204b806a0f62401bc66e137f475e896dc3e4dfa (diff)
warnings patch by (bubu <bubu at bubu dot net>)
Originally committed as revision 1386 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpeg.c')
-rw-r--r--libavcodec/mjpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c
index 47ace7bc38..9b49435825 100644
--- a/libavcodec/mjpeg.c
+++ b/libavcodec/mjpeg.c
@@ -1182,8 +1182,9 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
get_bits(&s->gb, 8), get_bits(&s->gb, 8));
if (get_bits(&s->gb, 8) == 0)
{
- int x_density = get_bits(&s->gb, 16);
- int y_density = get_bits(&s->gb, 16);
+ int x_density, y_density;
+ x_density = get_bits(&s->gb, 16);
+ y_density = get_bits(&s->gb, 16);
dprintf("x/y density: %d (%f), %d (%f)\n", x_density,
(float)x_density, y_density, (float)y_density);