diff options
author | bubu <bubu@bubu.net> | 2003-01-01 15:10:45 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-01-01 15:10:45 +0000 |
commit | ccfddafbd9a775b05faeaf2f5a5ed182951419aa (patch) | |
tree | 787d7625d6b2f861a7512583effd4afc8fff3775 /libavcodec/mjpeg.c | |
parent | 7204b806a0f62401bc66e137f475e896dc3e4dfa (diff) | |
download | ffmpeg-ccfddafbd9a775b05faeaf2f5a5ed182951419aa.tar.gz |
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.c | 5 |
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); |