v->fcm is an enum defined by ffmpeg and may change which would break this again. picture_type is also brittle. It should be made clear e.g. by a prefix what variables follow the spec and are unchanged and what are ffmpeg ones.