comparison mjpeg.c @ 949:693a0797398f libavcodec

warnings patch by (bubu <bubu at bubu dot net>)
author michaelni
date Wed, 01 Jan 2003 15:10:45 +0000
parents c9bbd35064b6
children 1f9afd8b9131
comparison
equal deleted inserted replaced
948:371bc36a9c5c 949:693a0797398f
1180 skip_bits(&s->gb, 8); /* the trailing zero-byte */ 1180 skip_bits(&s->gb, 8); /* the trailing zero-byte */
1181 printf("mjpeg: JFIF header found (version: %x.%x)\n", 1181 printf("mjpeg: JFIF header found (version: %x.%x)\n",
1182 get_bits(&s->gb, 8), get_bits(&s->gb, 8)); 1182 get_bits(&s->gb, 8), get_bits(&s->gb, 8));
1183 if (get_bits(&s->gb, 8) == 0) 1183 if (get_bits(&s->gb, 8) == 0)
1184 { 1184 {
1185 int x_density = get_bits(&s->gb, 16); 1185 int x_density, y_density;
1186 int y_density = get_bits(&s->gb, 16); 1186 x_density = get_bits(&s->gb, 16);
1187 y_density = get_bits(&s->gb, 16);
1187 1188
1188 dprintf("x/y density: %d (%f), %d (%f)\n", x_density, 1189 dprintf("x/y density: %d (%f), %d (%f)\n", x_density,
1189 (float)x_density, y_density, (float)y_density); 1190 (float)x_density, y_density, (float)y_density);
1190 #if 0 1191 #if 0
1191 //MN: needs to be checked 1192 //MN: needs to be checked