- s->video_width = AV_RL16(&scratch[0]) * 8;
- s->video_height = AV_RL16(&scratch[2]) * 8;
- debug_ipmovie("video resolution: %d x %d\n",
- s->video_width, s->video_height);
+ width = AV_RL16(&scratch[0]) * 8;
+ height = AV_RL16(&scratch[2]) * 8;
+ if (width != s->video_width) {
+ s->video_width = width;
+ s->changed++;
+ }
+ if (height != s->video_height) {
+ s->video_height = height;
+ s->changed++;
+ }
+ if (opcode_version < 2 || !AV_RL16(&scratch[6])) {
+ s->video_bpp = 8;
+ } else {
+ s->video_bpp = 16;
+ }
+ av_dlog(NULL, "video resolution: %d x %d\n",
+ s->video_width, s->video_height);