Merge commit 'ee8af2dd99dcb7a01a667deedec81d1aa2a00d72'
[ffmpeg.git] / libavcodec / mpegvideo.c
index 00d58dc..460e8ac 100644 (file)
@@ -748,7 +748,8 @@ do {\
 
     // MPEG4 timing info
     memcpy(&s->time_increment_bits, &s1->time_increment_bits,
-           (char *) &s1->shape - (char *) &s1->time_increment_bits);
+           (char *) &s1->pb_field_time + sizeof(s1->pb_field_time) -
+           (char *) &s1->time_increment_bits);
 
     // B-frame info
     s->max_b_frames = s1->max_b_frames;