include required headers for int64_t and AV_RB16()